Class REXML::Text
In: /home/ser/Work/rexml/rexml/text.rb
Parent: Child
Package diagram
Represents text in an XML document
Methods
<=>    clone    new    parse_stream    to_s    write   
Attributes
raw  [RW] 
string  [R] 
Included modules
Comparable
Public Class methods
new(arg, respect_whitespace=false, parent=nil, pattern=PATTERN, raw=false)
Constructor @param arg if a String, the content is set to the String. If a Text, the object is shallowly cloned. If a Source, the source is parsed for text content up to the next element. If a parent, the parent of this object is set to the argument. @param whitespace (boolean, optional) if true, whitespace is respected @param parent (Parent, optional) if given, the parent of this object will be set to the argument
parse_stream(source, listener)
Public Instance methods
clone()
<=>( other )
@param other a String or a Text @return the result of (to_s <=> arg.to_s)
to_s()
write( writer, indent=-1 )