add_table_of_sections()
create table of contents if we contain sections
# File lib/rdoc/generator.rb, line 462 def add_table_of_sections toc = [] @context.sections.each do |section| if section.title then toc << { 'secname' => section.title, 'href' => section.sequence } end end @values['toc'] = toc unless toc.empty? end