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_method_detail_list(section)public
Build an array of arrays of method details. The outer array has up to six entries, public, private, and protected for both class methods, the other for instance methods. The inner arrays contain a hash for each method
# File lib/rdoc/generator.rb, line 320
def build_method_detail_list(section)
outer = []
methods = @methods.sort.select do |m|
m.document_self and m.section == section
end
for singleton in [true, false]
for vis in [ :public, :protected, :private ]
res = []
methods.each do |m|
next unless m.visibility == vis and m.singleton == singleton
row = {}
if m.call_seq then
row["callseq"] = m.call_seq.gsub(/->/, '→')
else
row["name"] = CGI.escapeHTML(m.name)
row["params"] = m.params
end
desc = m.description.strip
row["m_desc"] = desc unless desc.empty?
row["aref"] = m.aref
row["visibility"] = m.visibility.to_s
alias_names = []
m.aliases.each do |other|
if other.viewer then # won't be if the alias is private
alias_names << {
'name' => other.name,
'aref' => other.viewer.as_href(path)
}
end
end
row["aka"] = alias_names unless alias_names.empty?
if @options.inline_source then
code = m.source_code
row["sourcecode"] = code if code
else
code = m.src_url
if code then
row["codeurl"] = code
row["imgurl"] = m.img_url
end
end
res << row
end
if res.size > 0 then
outer << {
"type" => vis.to_s.capitalize,
"category" => singleton ? "Class" : "Instance",
"methods" => res
}
end
end
end
outer
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