PATH:
opt
/
alt
/
ruby20
/
lib64
/
ruby
/
2.0.0
/
rdoc
/
markup
## # A heading with a level (1-6) and text RDoc::Markup::Heading = Struct.new :level, :text do @to_html = nil @to_label = nil ## # A singleton RDoc::Markup::ToLabel formatter for headings. def self.to_label @to_label ||= RDoc::Markup::ToLabel.new end ## # A singleton plain HTML formatter for headings. Used for creating labels # for the Table of Contents def self.to_html return @to_html if @to_html markup = RDoc::Markup.new markup.add_special RDoc::CrossReference::CROSSREF_REGEXP, :CROSSREF @to_html = RDoc::Markup::ToHtml.new nil def @to_html.handle_special_CROSSREF special special.text.sub(/^\\/, '') end @to_html end ## # Calls #accept_heading on +visitor+ def accept visitor visitor.accept_heading self end ## # An HTML-safe anchor reference for this header. def aref "label-#{self.class.to_label.convert text.dup}" end ## # HTML markup of the text of this label without the surrounding header # element. def plain_html self.class.to_html.to_html(text.dup) end def pretty_print q # :nodoc: q.group 2, "[head: #{level} ", ']' do q.pp text end end end
[-] list.rb
[edit]
[-] parser.rb
[edit]
[-] text_formatter_test_case.rb
[edit]
[-] list_item.rb
[edit]
[-] rule.rb
[edit]
[-] to_bs.rb
[edit]
[-] to_tt_only.rb
[edit]
[-] attributes.rb
[edit]
[-] paragraph.rb
[edit]
[-] raw.rb
[edit]
[-] heading.rb
[edit]
[-] formatter_test_case.rb
[edit]
[-] attribute_manager.rb
[edit]
[-] blank_line.rb
[edit]
[-] to_test.rb
[edit]
[-] attr_changer.rb
[edit]
[-] special.rb
[edit]
[-] to_table_of_contents.rb
[edit]
[-] to_html_crossref.rb
[edit]
[-] to_label.rb
[edit]
[-] indented_paragraph.rb
[edit]
[+]
..
[-] include.rb
[edit]
[-] hard_break.rb
[edit]
[-] document.rb
[edit]
[-] block_quote.rb
[edit]
[-] attr_span.rb
[edit]
[-] to_html.rb
[edit]
[-] to_joined_paragraph.rb
[edit]
[-] verbatim.rb
[edit]
[-] formatter.rb
[edit]
[-] to_html_snippet.rb
[edit]
[-] to_ansi.rb
[edit]
[-] pre_process.rb
[edit]
[-] to_markdown.rb
[edit]
[-] to_rdoc.rb
[edit]
[-] inline.rb
[edit]