Preview: heading.rb
Size: 314 B
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/markup/heading.rb
##
# 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
Directory Contents
Dirs: 0 × Files: 24