PATH: //opt/alt/ruby22/lib64/ruby/2.2.0/rdoc/markup
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 attr_changer.rb
↓
X
📄 attr_span.rb
↓
X
📄 attribute_manager.rb
↓
X
📄 attributes.rb
↓
X
📄 blank_line.rb
↓
X
📄 block_quote.rb
↓
X
📄 document.rb
↓
X
📄 formatter.rb
↓
X
📄 formatter_test_case.rb
↓
X
📄 hard_break.rb
↓
X
📄 heading.rb
↓
X
📄 include.rb
↓
X
📄 indented_paragraph.rb
↓
X
📄 inline.rb
↓
X
📄 list.rb
↓
X
📄 list_item.rb
↓
X
📄 paragraph.rb
↓
X
📄 parser.rb
↓
X
📄 pre_process.rb
↓
X
📄 raw.rb
↓
X
📄 rule.rb
↓
X
📄 special.rb
↓
X
📄 text_formatter_test_case.rb
↓
X
📄 to_ansi.rb
↓
X
📄 to_bs.rb
↓
X
📄 to_html.rb
↓
X
📄 to_html_crossref.rb
↓
X
📄 to_html_snippet.rb
↓
X
📄 to_joined_paragraph.rb
↓
X
📄 to_label.rb
↓
X
📄 to_markdown.rb
↓
X
📄 to_rdoc.rb
↓
X
📄 to_table_of_contents.rb
↓
X
📄 to_test.rb
↓
X
📄 to_tt_only.rb
↓
X
📄 verbatim.rb
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: heading.rb
## # 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 ## # Creates a fully-qualified label which will include the label from # +context+. This helps keep ids unique in HTML. def label context = nil label = aref label = [context.aref, label].compact.join '-' if context and context.respond_to? :aref label 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
SIMPAN PERUBAHAN