method
display_heading
v1_9_1_378 -
Show latest stable
- Class:
RDoc::RI::Formatter
display_heading(text, level, indent)public
No documentation available.
# File lib/rdoc/ri/formatter.rb, line 196
def display_heading(text, level, indent)
text = strip_attributes text
case level
when 1 then
ul = "=" * text.length
@output.puts
@output.puts text.upcase
@output.puts ul
when 2 then
ul = "-" * text.length
@output.puts
@output.puts text
@output.puts ul
else
@output.print indent, text, "\n"
end
@output.puts
end