# RDoc::Markup::ToTableOfContents - ri - phpman

= [**RDoc::Markup::ToTableOfContents](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AToTableOfContents/markdown) < [RDoc::Markup::Formatter**](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AFormatter/markdown)

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
## Extracts just the [RDoc::Markup::Heading](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3AHeading/markdown) elements from a
[RDoc::Markup::Document](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AMarkup%3A%3ADocument/markdown) to help build a table of contents
------------------------------------------------------------------------
= **Class methods:**

  to_toc

= **Instance methods:**

  accept_document
  accept_heading
  end_accepting
  omit_headings_below
  res
  start_accepting
  suppressed?

= **Attributes:**

  attr_accessor omit_headings_below
  attr_reader res

