Exploit databaseDownload repository ZIP
GH-08b4e46992fde5efb0a6e5e3983b5d84
jas502n/cve-2019-12384
Sources for CVE-2019-12384
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files36
jas502n/cve-2019-12384Revision 20605173b861
- ↑..Parent directory
- attr_changer.rb
- attr_span.rb
- attribute_manager.rb
- attributes.rb
- blank_line.rb
- block_quote.rb
- document.rb
- formatter.rb
- formatter_test_case.rb
- hard_break.rb
- heading.rb
- include.rb
- indented_paragraph.rb
- inline.rb
- list.rb
- list_item.rb
- paragraph.rb
- parser.rb
- pre_process.rb
- raw.rb
- rule.rb
- special.rb
- text_formatter_test_case.rb
- to_ansi.rb
- to_bs.rb
- to_html.rb
- to_html_crossref.rb
- to_html_snippet.rb
- to_joined_paragraph.rb
- to_label.rb
- to_markdown.rb
- to_rdoc.rb
- to_table_of_contents.rb
- to_test.rb
- to_tt_only.rb
- verbatim.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
jruby-9.2.7.0/lib/ruby/stdlib/rdoc/markup/list.rb
Ruby · 1,861 bytes# 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