A section of documentation like:
# :section: The title
# The body
Sections can be referenced multiple times and will be collapsed into a single section.
Methods
Included Modules
Attributes
[R] | comment | Section comment |
[R] | parent | Context this Section lives in |
[R] | title | Section title |
Class Public methods
new(parent, title, comment)
Link
Creates a new section with title
and comment
Instance Public methods
aref()
Link
Anchor reference for linking to this section
comment=(comment)
Link
Appends comment
to the current comment separated by a rule.
extract_comment(comment)
Link
Extracts the comment for this section from the original comment block. If the first line contains :section:, strip it and use the rest. Otherwise remove lines up to the line containing :section:, and look for those lines again at the end and remove them. This lets us write
# :section: The title
# The body