Extracts just the RDoc::Markup::Heading elements from a RDoc::Markup::Document to help build a table of contents
Methods
Attributes
[RW] | omit_headings_below | Omits headings with a level less than the given level. |
[R] | res | Output accumulator |
Class Public methods
Instance Public methods
accept_document(document)
Link
Adds document
to the output, using its heading cutoff if
present
accept_heading(heading)
Link
Adds heading
to the table of contents
end_accepting()
Link
Returns the table of contents
start_accepting()
Link
Prepares the visitor for text generation