This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_1_378) is shown here.
add_table_of_sections()
public
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