class REXML::CData
def clone
d = c.clone
c = CData.new( "Some text" )
_Examples_
Make a copy of this object
def clone CData.new self end
def initialize( first, whitespace=true, parent=nil )
CData.new( "Here is some CDATA" )
CData.new( source )
_Examples_
Constructor. CData is data between
def initialize( first, whitespace=true, parent=nil ) super( first, whitespace, parent, false, true, ILLEGAL ) end
def to_s
c = CData.new( "Some text" )
_Examples_
Returns the content of this CData object
def to_s @string end
def value
def value @string end
def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
c = CData.new( " Some text " )
_Examples_
Ignored
ie_hack::
Ignored
transitive::
The amount to indent this node by
indent::
Where to write the string. Defaults to $stdout
output::
Generates XML output of this object
See the rexml/formatters package
== DEPRECATED
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