Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.
build_class_list(level, from, section, infile=nil)public
Build the structured list of classes and modules contained in this context.
# File lib/rdoc/generator.rb, line 391
def build_class_list(level, from, section, infile=nil)
prefix = ' ::' * level;
res = ''
from.modules.sort.each do |mod|
next unless mod.section == section
next if infile && !mod.defined_in?(infile)
if mod.document_self
res <<
prefix <<
'Module ' <<
href(url(mod.viewer.path), 'link', mod.full_name) <<
"<br />\n" <<
build_class_list(level + 1, mod, section, infile)
end
end
from.classes.sort.each do |cls|
next unless cls.section == section
next if infile and not cls.defined_in?(infile)
if cls.document_self
res <<
prefix <<
'Class ' <<
href(url(cls.viewer.path), 'link', cls.full_name) <<
"<br />\n" <<
build_class_list(level + 1, cls, section, infile)
end
end
res
end Related methods
- Instance methods
- add_table_of_sections
- aref_to
- as_href
- build_alias_summary_list
- build_class_list
- build_constants_summary_list
- build_include_list
- build_method_detail_list
- build_method_summary_list
- build_requires_list
- collect_methods
- diagram_reference
- document_self
- find_symbol
- formatter
- href
- potentially_referenced_list
- url
- Class methods
- build_class_list
- build_indices
- new