X7ROOT File Manager
Current Path:
/opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/markup
opt
/
alt
/
ruby19
/
lib64
/
ruby
/
1.9.1
/
rdoc
/
markup
/
ðŸ“
..
📄
attribute_manager.rb
(7.8 KB)
📄
blank_line.rb
(361 B)
📄
document.rb
(2.42 KB)
📄
formatter.rb
(3.3 KB)
📄
formatter_test_case.rb
(15.71 KB)
📄
heading.rb
(314 B)
📄
indented_paragraph.rb
(534 B)
📄
inline.rb
(2.76 KB)
📄
list.rb
(1.08 KB)
📄
list_item.rb
(1.26 KB)
📄
paragraph.rb
(191 B)
📄
parser.rb
(12.65 KB)
📄
pre_process.rb
(6.33 KB)
📄
raw.rb
(965 B)
📄
rule.rb
(285 B)
📄
text_formatter_test_case.rb
(2.53 KB)
📄
to_ansi.rb
(1.79 KB)
📄
to_bs.rb
(1.7 KB)
📄
to_html.rb
(6.66 KB)
📄
to_html_crossref.rb
(3.34 KB)
📄
to_rdoc.rb
(5.58 KB)
📄
to_test.rb
(1.16 KB)
📄
to_tt_only.rb
(2.11 KB)
📄
verbatim.rb
(634 B)
Editing: list.rb
## # A List of ListItems class RDoc::Markup::List ## # The list's type attr_accessor :type ## # Items in the list attr_reader :items ## # Creates a new list of +type+ with +items+ def initialize type = nil, *items @type = type @items = [] @items.push(*items) end ## # Appends +item+ to the list def << item @items << item end def == other # :nodoc: self.class == other.class and @type == other.type and @items == other.items end ## # Runs this list and all its #items through +visitor+ def accept visitor visitor.accept_list_start self @items.each do |item| item.accept visitor end visitor.accept_list_end self end ## # Is the list empty? def empty? @items.empty? end ## # Returns the last item in the list def last @items.last end def pretty_print q # :nodoc: q.group 2, "[list: #{@type} ", ']' do q.seplist @items do |item| q.pp item end end end ## # Appends +items+ to the list def push *items @items.push(*items) end end
Upload File
Create Folder