Sha256: 3ff157114619106ff01616179388263da2dd304e53674309d0e366dd608cb915

Contents?: true

Size: 314 Bytes

Versions: 13

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 +visitor+

  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

13 entries across 13 versions & 1 rubygems

Version Path
rdoc-3.9.5 lib/rdoc/markup/heading.rb
rdoc-3.9.4 lib/rdoc/markup/heading.rb
rdoc-3.9.3 lib/rdoc/markup/heading.rb
rdoc-3.9.2 lib/rdoc/markup/heading.rb
rdoc-3.9.1 lib/rdoc/markup/heading.rb
rdoc-3.9 lib/rdoc/markup/heading.rb
rdoc-3.8 lib/rdoc/markup/heading.rb
rdoc-3.7 lib/rdoc/markup/heading.rb
rdoc-3.6.1 lib/rdoc/markup/heading.rb
rdoc-3.6 lib/rdoc/markup/heading.rb
rdoc-3.5.3 lib/rdoc/markup/heading.rb
rdoc-3.5.2 lib/rdoc/markup/heading.rb
rdoc-3.5.1 lib/rdoc/markup/heading.rb