MCPcopy
hub / github.com/aws/aws-cli / getvalue

Method getvalue

awscli/bcdoc/restdoc.py:87–95  ·  view source on GitHub ↗

Returns the current content of the document as a string.

(self)

Source from the content-addressed store, hash-verified

85 self._writes.insert(index, content)
86
87 def getvalue(self):
88 """
89 Returns the current content of the document as a string.
90 """
91 if self.hrefs:
92 self.style.new_paragraph()
93 for refname, link in self.hrefs.items():
94 self.style.link_target_definition(refname, link)
95 return ''.join(self._writes).encode('utf-8')
96
97 def translate_words(self, words):
98 return [self.translation_map.get(w, w) for w in words]

Callers 15

test_writeMethod · 0.95
test_writelnMethod · 0.95
test_add_linksMethod · 0.95
test_writeMethod · 0.95
test_writelnMethod · 0.95
test_insert_writeMethod · 0.95
test_add_linksMethod · 0.95
runMethod · 0.45

Calls 3

new_paragraphMethod · 0.45
encodeMethod · 0.45

Tested by 15

test_writeMethod · 0.76
test_writelnMethod · 0.76
test_add_linksMethod · 0.76
test_writeMethod · 0.76
test_writelnMethod · 0.76
test_insert_writeMethod · 0.76
test_add_linksMethod · 0.76