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: verbatim.rb
# frozen_string_literal: true ## # A section of verbatim text class RDoc::Markup::Verbatim < RDoc::Markup::Raw ## # Format of this verbatim section attr_accessor :format def initialize *parts # :nodoc: super @format = nil end def == other # :nodoc: super and @format == other.format end ## # Calls #accept_verbatim on +visitor+ def accept visitor visitor.accept_verbatim self end ## # Collapses 3+ newlines into two newlines def normalize parts = [] newlines = 0 @parts.each do |part| case part when /^\s*\n/ then newlines += 1 parts << part if newlines == 1 else newlines = 0 parts << part end end parts.pop if parts.last =~ /\A\r?\n\z/ @parts = parts end def pretty_print q # :nodoc: self.class.name =~ /.*::(\w{1,4})/i q.group 2, "[#{$1.downcase}: ", ']' do if @format then q.text "format: #{@format}" q.breakable end q.seplist @parts do |part| q.pp part end end end ## # Is this verbatim section Ruby code? def ruby? @format ||= nil # TODO for older ri data, switch the tree to marshal_dump @format == :ruby end ## # The text of the section def text @parts.join end end
Upload File
Create Folder