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: indented_paragraph.rb
## # An Indented Paragraph of text class RDoc::Markup::IndentedParagraph < RDoc::Markup::Raw ## # The indent in number of spaces attr_reader :indent ## # Creates a new IndentedParagraph containing +parts+ indented with +indent+ # spaces def initialize indent, *parts @indent = indent super(*parts) end def == other # :nodoc: super and indent == other.indent end ## # Calls #accept_indented_paragraph on +visitor+ def accept visitor visitor.accept_indented_paragraph self end ## # Joins the raw paragraph text and converts inline HardBreaks to the # +hard_break+ text followed by the indent. def text hard_break = nil @parts.map do |part| if RDoc::Markup::HardBreak === part then '%1$s%3$*2$s' % [hard_break, @indent, ' '] if hard_break else part end end.join end end
SIMPAN PERUBAHAN