RDoc::Markup::ToTest

This Markup outputter is used for testing purposes.

Public Instance Methods

accept_blank_line(blank_line) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 51
51:   def accept_blank_line(blank_line)
52:     @res << "\n"
53:   end
accept_heading(heading) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 55
55:   def accept_heading(heading)
56:     @res << "#{'=' * heading.level} #{heading.text}"
57:   end
accept_list_end(list) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 40
40:   def accept_list_end(list)
41:     @list.pop
42:   end
accept_list_item_end(list_item) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 48
48:   def accept_list_item_end(list_item)
49:   end
accept_list_item_start(list_item) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 44
44:   def accept_list_item_start(list_item)
45:     @res << "#{' ' * (@list.size - 1)}#{@list.last}: "
46:   end
accept_list_start(list) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 29
29:   def accept_list_start(list)
30:     @list << case list.type
31:              when :BULLET then
32:                '*'
33:              when :NUMBER then
34:                '1'
35:              else
36:                list.type
37:              end
38:   end
accept_paragraph(paragraph) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 21
21:   def accept_paragraph(paragraph)
22:     @res << paragraph.text
23:   end
accept_rule(rule) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 59
59:   def accept_rule(rule)
60:     @res << '-' * rule.weight
61:   end
accept_verbatim(verbatim) click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 25
25:   def accept_verbatim(verbatim)
26:     @res << verbatim.text
27:   end
end_accepting() click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 17
17:   def end_accepting
18:     @res
19:   end
start_accepting() click to toggle source
    # File lib/rdoc/markup/to_test.rb, line 12
12:   def start_accepting
13:     @res = []
14:     @list = []
15:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.