[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.140: ~ $
# frozen_string_literal: true
##
# A List is a homogeneous set of ListItems.
#
# The supported list types include:
#
# :BULLET::
#   An unordered list
# :LABEL::
#   An unordered definition list, but using an alternate RDoc::Markup syntax
# :LALPHA::
#   An ordered list using increasing lowercase English letters
# :NOTE::
#   An unordered definition list
# :NUMBER::
#   An ordered list using increasing Arabic numerals
# :UALPHA::
#   An ordered list using increasing uppercase English letters
#
# Definition lists behave like HTML definition lists.  Each list item can
# describe multiple terms.  See RDoc::Markup::ListItem for how labels and
# definition are stored as list items.

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+.  Valid list types are:
  # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+

  def initialize type = nil, *items
    @type = type
    @items = []
    @items.concat 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.concat items
  end

end


Filemanager

Name Type Size Permission Actions
attr_changer.rb File 424 B 0644
attr_span.rb File 672 B 0644
attribute_manager.rb File 9.97 KB 0644
attributes.rb File 1.25 KB 0644
blank_line.rb File 391 B 0644
block_quote.rb File 252 B 0644
document.rb File 3.15 KB 0644
formatter.rb File 5.45 KB 0644
hard_break.rb File 446 B 0644
heading.rb File 1.48 KB 0644
include.rb File 829 B 0644
indented_paragraph.rb File 906 B 0644
list.rb File 1.82 KB 0644
list_item.rb File 1.71 KB 0644
paragraph.rb File 493 B 0644
parser.rb File 14.4 KB 0644
pre_process.rb File 8.42 KB 0644
raw.rb File 1000 B 0644
regexp_handling.rb File 718 B 0644
rule.rb File 315 B 0644
table.rb File 996 B 0644
to_ansi.rb File 2.05 KB 0644
to_bs.rb File 1.64 KB 0644
to_html.rb File 9.93 KB 0644
to_html_crossref.rb File 4.87 KB 0644
to_html_snippet.rb File 5.46 KB 0644
to_joined_paragraph.rb File 1.14 KB 0644
to_label.rb File 1.84 KB 0644
to_markdown.rb File 3.61 KB 0644
to_rdoc.rb File 6.53 KB 0644
to_table_of_contents.rb File 1.72 KB 0644
to_test.rb File 1.14 KB 0644
to_tt_only.rb File 2.28 KB 0644
verbatim.rb File 1.28 KB 0644