Method: RDoc::Markup::ToRdoc#accept_heading

Defined in:
lib/rdoc/markup/to_rdoc.rb

#accept_heading(heading) ⇒ Object

Adds heading to the output



99
100
101
102
103
104
105
# File 'lib/rdoc/markup/to_rdoc.rb', line 99

def accept_heading heading
  use_prefix or @res << ' ' * @indent
  @res << @headings[heading.level][0]
  @res << attributes(heading.text)
  @res << @headings[heading.level][1]
  @res << "\n"
end