X7ROOT File Manager
Current Path:
/opt/alt/ruby25/lib64/ruby/2.5.0/rexml
opt
/
alt
/
ruby25
/
lib64
/
ruby
/
2.5.0
/
rexml
/
ðŸ“
..
📄
attlistdecl.rb
(1.92 KB)
📄
attribute.rb
(5.53 KB)
📄
cdata.rb
(1.58 KB)
📄
child.rb
(2.66 KB)
📄
comment.rb
(2.12 KB)
📄
doctype.rb
(7.64 KB)
📄
document.rb
(9.51 KB)
ðŸ“
dtd
📄
element.rb
(44.38 KB)
📄
encoding.rb
(1.16 KB)
📄
entity.rb
(5.39 KB)
ðŸ“
formatters
📄
functions.rb
(11.9 KB)
📄
instruction.rb
(2.05 KB)
ðŸ“
light
📄
namespace.rb
(1.12 KB)
📄
node.rb
(2.17 KB)
📄
output.rb
(550 B)
📄
parent.rb
(4.27 KB)
📄
parseexception.rb
(1.25 KB)
ðŸ“
parsers
📄
quickpath.rb
(9.12 KB)
📄
rexml.rb
(1.32 KB)
📄
sax2listener.rb
(3.61 KB)
📄
security.rb
(824 B)
📄
source.rb
(7.64 KB)
📄
streamlistener.rb
(3.84 KB)
📄
syncenumerator.rb
(716 B)
📄
text.rb
(13.78 KB)
📄
undefinednamespaceexception.rb
(241 B)
ðŸ“
validation
📄
xmldecl.rb
(2.71 KB)
📄
xmltokens.rb
(2.32 KB)
📄
xpath.rb
(3.34 KB)
📄
xpath_parser.rb
(20.44 KB)
Editing: cdata.rb
# frozen_string_literal: false require "rexml/text" module REXML class CData < Text START = '<![CDATA[' STOP = ']]>' ILLEGAL = /(\]\]>)/ # Constructor. CData is data between <![CDATA[ ... ]]> # # _Examples_ # CData.new( source ) # CData.new( "Here is some CDATA" ) # CData.new( "Some unprocessed data", respect_whitespace_TF, parent_element ) def initialize( first, whitespace=true, parent=nil ) super( first, whitespace, parent, false, true, ILLEGAL ) end # Make a copy of this object # # _Examples_ # c = CData.new( "Some text" ) # d = c.clone # d.to_s # -> "Some text" def clone CData.new self end # Returns the content of this CData object # # _Examples_ # c = CData.new( "Some text" ) # c.to_s # -> "Some text" def to_s @string end def value @string end # == DEPRECATED # See the rexml/formatters package # # Generates XML output of this object # # output:: # Where to write the string. Defaults to $stdout # indent:: # The amount to indent this node by # transitive:: # Ignored # ie_hack:: # Ignored # # _Examples_ # c = CData.new( " Some text " ) # c.write( $stdout ) #-> <![CDATA[ Some text ]]> def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) Kernel.warn( "#{self.class.name}.write is deprecated", uplevel: 1) indent( output, indent ) output << START output << @string output << STOP end end end
Upload File
Create Folder