Sha256: cfeffb9aad20d6fca2c78b7dc5e171d133ae6f1d5c5826018c74c832c6a3e5b4

Contents?: true

Size: 314 Bytes

Versions: 7

Compression:

Stored size: 314 Bytes

Contents

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

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

  ##
  # Calls #accept_heading on +wisitor+

  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

7 entries across 7 versions & 1 rubygems

Version Path
rdoc-3.5 lib/rdoc/markup/heading.rb
rdoc-3.4 lib/rdoc/markup/heading.rb
rdoc-3.3 lib/rdoc/markup/heading.rb
rdoc-3.2 lib/rdoc/markup/heading.rb
rdoc-3.1 lib/rdoc/markup/heading.rb
rdoc-3.0.1 lib/rdoc/markup/heading.rb
rdoc-3.0 lib/rdoc/markup/heading.rb