accept_heading(heading)
Adds heading to the table of contents
# File lib/rdoc/markup/to_table_of_contents.rb, line 44 def accept_heading heading @res << heading unless suppressed? heading end