X7ROOT File Manager
Current Path:
/opt/alt/ruby25/lib64/ruby/2.5.0/rdoc/markup
opt
/
alt
/
ruby25
/
lib64
/
ruby
/
2.5.0
/
rdoc
/
markup
/
ðŸ“
..
📄
attr_changer.rb
(424 B)
📄
attr_span.rb
(500 B)
📄
attribute_manager.rb
(7.95 KB)
📄
attributes.rb
(1.19 KB)
📄
blank_line.rb
(391 B)
📄
block_quote.rb
(252 B)
📄
document.rb
(3.15 KB)
📄
formatter.rb
(5.31 KB)
📄
formatter_test_case.rb
(16.76 KB)
📄
hard_break.rb
(446 B)
📄
heading.rb
(1.48 KB)
📄
include.rb
(829 B)
📄
indented_paragraph.rb
(906 B)
📄
inline.rb
(118 B)
📄
list.rb
(1.82 KB)
📄
list_item.rb
(1.71 KB)
📄
paragraph.rb
(493 B)
📄
parser.rb
(13.72 KB)
📄
pre_process.rb
(8.26 KB)
📄
raw.rb
(1000 B)
📄
rule.rb
(315 B)
📄
special.rb
(657 B)
📄
text_formatter_test_case.rb
(2.51 KB)
📄
to_ansi.rb
(2.05 KB)
📄
to_bs.rb
(1.63 KB)
📄
to_html.rb
(8.62 KB)
📄
to_html_crossref.rb
(4.33 KB)
📄
to_html_snippet.rb
(5.45 KB)
📄
to_joined_paragraph.rb
(1.1 KB)
📄
to_label.rb
(1.83 KB)
📄
to_markdown.rb
(3.62 KB)
📄
to_rdoc.rb
(6.15 KB)
📄
to_table_of_contents.rb
(1.68 KB)
📄
to_test.rb
(1.14 KB)
📄
to_tt_only.rb
(2.26 KB)
📄
verbatim.rb
(1.28 KB)
Editing: to_joined_paragraph.rb
# frozen_string_literal: true ## # Joins the parts of an RDoc::Markup::Paragraph into a single String. # # This allows for easier maintenance and testing of Markdown support. # # This formatter only works on Paragraph instances. Attempting to process # other markup syntax items will not work. class RDoc::Markup::ToJoinedParagraph < RDoc::Markup::Formatter def initialize # :nodoc: super nil end def start_accepting # :nodoc: end def end_accepting # :nodoc: end ## # Converts the parts of +paragraph+ to a single entry. def accept_paragraph paragraph parts = paragraph.parts.chunk do |part| String === part end.map do |string, chunk| string ? chunk.join.rstrip : chunk end.flatten paragraph.parts.replace parts end alias accept_block_quote ignore alias accept_heading ignore alias accept_list_end ignore alias accept_list_item_end ignore alias accept_list_item_start ignore alias accept_list_start ignore alias accept_raw ignore alias accept_rule ignore alias accept_verbatim ignore end
Upload File
Create Folder