[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.140: ~ $
# frozen_string_literal: true
##
# An item within a List that contains paragraphs, headings, etc.
#
# For BULLET, NUMBER, LALPHA and UALPHA lists, the label will always be nil.
# For NOTE and LABEL lists, the list label may contain:
#
# * a single String for a single label
# * an Array of Strings for a list item with multiple terms
# * nil for an extra description attached to a previously labeled list item

class RDoc::Markup::ListItem

  ##
  # The label for the ListItem

  attr_accessor :label

  ##
  # Parts of the ListItem

  attr_reader :parts

  ##
  # Creates a new ListItem with an optional +label+ containing +parts+

  def initialize label = nil, *parts
    @label = label
    @parts = []
    @parts.concat parts
  end

  ##
  # Appends +part+ to the ListItem

  def << part
    @parts << part
  end

  def == other # :nodoc:
    self.class == other.class and
      @label == other.label and
      @parts == other.parts
  end

  ##
  # Runs this list item and all its #parts through +visitor+

  def accept visitor
    visitor.accept_list_item_start self

    @parts.each do |part|
      part.accept visitor
    end

    visitor.accept_list_item_end self
  end

  ##
  # Is the ListItem empty?

  def empty?
    @parts.empty?
  end

  ##
  # Length of parts in the ListItem

  def length
    @parts.length
  end

  def pretty_print q # :nodoc:
    q.group 2, '[item: ', ']' do
      case @label
      when Array then
        q.pp @label
        q.text ';'
        q.breakable
      when String then
        q.pp @label
        q.text ';'
        q.breakable
      end

      q.seplist @parts do |part|
        q.pp part
      end
    end
  end

  ##
  # Adds +parts+ to the ListItem

  def push *parts
    @parts.concat parts
  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