Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
table_of_contents()
public
Returns an Array of headings in the document.
Require ‘rdoc/markup/formatter’ before calling this method.
# File lib/rdoc/markup/document.rb, line 159
def table_of_contents
accept RDoc::Markup::ToTableOfContents.to_toc
end