Sha256: 89d6924c1453b8ec6621c670933eafdbbaaec9194fe90af033ec6da9bf94222e

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

##
# A heading with a level (1-6) and text

class RDoc::Markup::Heading < Struct.new :level, :text

  def accept visitor
    visitor.accept_heading self
  end

  def pretty_print q # :nodoc:
    q.group 2, "[head: #{level} ", ']' do
      q.pp text
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rdoc-2.5.11 lib/rdoc/markup/heading.rb
rdoc-2.5.10 lib/rdoc/markup/heading.rb
rdoc-2.5.9 lib/rdoc/markup/heading.rb
rdoc-2.5.8 lib/rdoc/markup/heading.rb
rdoc-2.5.7 lib/rdoc/markup/heading.rb
rdoc-2.5.6 lib/rdoc/markup/heading.rb
rdoc-2.5.5 lib/rdoc/markup/heading.rb
rdoc-2.5.4 lib/rdoc/markup/heading.rb
rdoc-2.5.3 lib/rdoc/markup/heading.rb
rdoc-2.5.2 lib/rdoc/markup/heading.rb
rdoc-2.5.1 lib/rdoc/markup/heading.rb
rdoc-2.5 lib/rdoc/markup/heading.rb