OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
rexml
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
attlistdecl.rb
1.92 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
attribute.rb
5.53 KB
07/22/2016 01:39:49 AM
rw-r--r--
📄
cdata.rb
1.58 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
child.rb
2.66 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
comment.rb
2.12 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
doctype.rb
7.64 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
document.rb
9.51 KB
12/16/2015 05:07:31 AM
rw-r--r--
📁
dtd
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
element.rb
44.38 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
encoding.rb
1.16 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
entity.rb
5.39 KB
11/02/2017 08:06:38 PM
rw-r--r--
📁
formatters
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
functions.rb
11.9 KB
08/13/2017 12:14:24 PM
rw-r--r--
📄
instruction.rb
2.05 KB
12/12/2017 11:56:25 AM
rw-r--r--
📁
light
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
namespace.rb
1.12 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
node.rb
2.17 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
output.rb
550 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
parent.rb
4.27 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
parseexception.rb
1.25 KB
12/16/2015 05:07:31 AM
rw-r--r--
📁
parsers
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
quickpath.rb
9.12 KB
05/17/2016 01:15:57 PM
rw-r--r--
📄
rexml.rb
1.32 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
sax2listener.rb
3.61 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
security.rb
824 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
source.rb
7.64 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
streamlistener.rb
3.84 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
syncenumerator.rb
716 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
text.rb
13.78 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
undefinednamespaceexception.rb
241 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📁
validation
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
xmldecl.rb
2.71 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xmltokens.rb
2.32 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xpath.rb
3.34 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xpath_parser.rb
20.44 KB
05/17/2016 01:15:57 PM
rw-r--r--
Editing: comment.rb
Close
# frozen_string_literal: false require "rexml/child" module REXML ## # Represents an XML comment; that is, text between \<!-- ... --> class Comment < Child include Comparable START = "<!--" STOP = "-->" # The content text attr_accessor :string ## # Constructor. The first argument can be one of three types: # @param first If String, the contents of this comment are set to the # argument. If Comment, the argument is duplicated. If # Source, the argument is scanned for a comment. # @param second If the first argument is a Source, this argument # should be nil, not supplied, or a Parent to be set as the parent # of this object def initialize( first, second = nil ) super(second) if first.kind_of? String @string = first elsif first.kind_of? Comment @string = first.string end end def clone Comment.new self end # == DEPRECATED # See REXML::Formatters # # output:: # Where to write the string # indent:: # An integer. If -1, no indenting will be used; otherwise, the # indentation will be this number of spaces, and children will be # indented an additional amount. # transitive:: # Ignored by this class. The contents of comments are never modified. # ie_hack:: # Needed for conformity to the child API, but not used by this class. def write( output, indent=-1, transitive=false, ie_hack=false ) Kernel.warn("Comment.write is deprecated. See REXML::Formatters", uplevel: 1) indent( output, indent ) output << START output << @string output << STOP end alias :to_s :string ## # Compares this Comment to another; the contents of the comment are used # in the comparison. def <=>(other) other.to_s <=> @string end ## # Compares this Comment to another; the contents of the comment are used # in the comparison. def ==( other ) other.kind_of? Comment and (other <=> self) == 0 end def node_type :comment end end end #vim:ts=2 sw=2 noexpandtab: