Class RDoc::RI::SimpleFormatter
In: ri/formatter.rb
Parent: RDoc::RI::Formatter

This formatter reduces extra lines for a simpler output. It improves way output looks for tools like IRC bots.

Methods

Public Instance methods

No extra blank lines

[Source]

     # File ri/formatter.rb, line 569
569:   def blankline
570:   end

Place heading level indicators inline with heading.

[Source]

     # File ri/formatter.rb, line 585
585:   def display_heading(text, level, indent)
586:     text = strip_attributes(text)
587:     case level
588:     when 1
589:       @output.puts "= " + text.upcase
590:     when 2
591:       @output.puts "-- " + text
592:     else
593:       @output.print indent, text, "\n"
594:     end
595:   end

Display labels only, no lines

[Source]

     # File ri/formatter.rb, line 575
575:   def draw_line(label=nil)
576:     unless label.nil? then
577:       bold_print(label)
578:       @output.puts
579:     end
580:   end

[Validate]