class documentation
class ParsedRstDocstring(ParsedDocstring): (source)
Known subclasses: pydoctor.epydoc.markup._pyval_repr.ColorizedPyvalRepr
Constructor: ParsedRstDocstring(document, fields)
An encoded version of a ReStructuredText docstring. The contents of the docstring are encoded in the _document
instance variable.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | to |
Translate this docstring to a nodes.document . |
Property | has |
Does this docstring have a non-empty body? |
Instance Variable | _document |
A ReStructuredText document, encoding the docstring. |
Inherited from ParsedDocstring
:
Method | get |
Returns the summary of this docstring. |
Method | get |
The table of contents of the docstring if titles are defined or None. |
Method | to |
Translate this docstring to a Stan tree. |
Method | to |
Translate this docstring to a string. The default implementation depends on to_node . |
Instance Variable | fields |
A list of Field s, each of which encodes a single field. The field's bodies are encoded as ParsedDocstrings. |
Instance Variable | _stan |
Undocumented |
Translate this docstring to a nodes.document
.
Returns | |
nodes.document | The docstring presented as a nodes.document . |
Note | |
Some ParsedDocstring subclasses do not support docutils nodes. This method might raise NotImplementedError in such cases. (i.e. pydoctor.epydoc.markup._types.ParsedTypeDocstring ) |