class FullComment
Represents a complete documentation comment with all its components. This is the top-level comment structure that can be converted to HTML or XML.
Definitions
def to_html
Convert this documentation comment to HTML.
Signature
-
returns
String The HTML representation of the comment.
Implementation
def to_html
Lib.extract_string Lib.full_comment_get_as_html(@comment)
end
def to_xml
Convert this documentation comment to XML.
Signature
-
returns
String The XML representation of the comment.
Implementation
def to_xml
Lib.extract_string Lib.full_comment_get_as_xml(@comment)
end
def text
Get the text by collecting and joining all child text.
Signature
-
returns
String The combined text content with newlines.
Implementation
def text
self.children.collect{|child| child.text.strip}.join("\n")
end