Adds a list of methods to out with a heading of
name
# File lib/rdoc/ri/driver.rb, line 455
def add_method_list out, methods, name
return if methods.empty?
out << RDoc::Markup::Heading.new(1, "#{name}:")
out << RDoc::Markup::BlankLine.new
if @use_stdout and !@interactive
out.push(*methods.map do |method|
RDoc::Markup::Verbatim.new method
end)
else
out << RDoc::Markup::IndentedParagraph.new(2, methods.join(', '))
end
out << RDoc::Markup::BlankLine.new
end