Class: REXML::CData
- Defined in:
- lib/extensions/rexml/rexml/cdata.rb,
lib/extensions/rhoxml/rexml/cdata.rb
Constant Summary collapse
- START =
'<![CDATA['
- STOP =
']]>'
- ILLEGAL =
/(\]\]>)/
Constants inherited from Text
Text::EREFERENCE, Text::NEEDS_A_SECOND_CHECK, Text::NUMERICENTITY, Text::REFERENCE, Text::SETUTITSBUS, Text::SLAICEPS, Text::SPECIALS, Text::SUBSTITUTES, Text::VALID_CHAR, Text::VALID_XML_CHARS
Instance Attribute Summary
Attributes inherited from Text
Attributes inherited from Child
Instance Method Summary collapse
-
#clone ⇒ Object
Make a copy of this object.
-
#initialize(first, whitespace = true, parent = nil) ⇒ CData
constructor
Constructor.
-
#to_s ⇒ Object
Returns the content of this CData object.
- #value ⇒ Object
-
#write(output = $stdout, indent = -1,, transitive = false, ie_hack = false) ⇒ Object
DEPRECATED See the rexml/formatters package.
Methods inherited from Text
#<<, #<=>, check, #doctype, #empty?, #indent_text, #inspect, #node_type, normalize, #parent=, read_with_substitution, unnormalize, #value=, #wrap, #write_with_substitution, #xpath
Methods included from Comparable
#<, #<=, #==, #>, #>=, #between?
Methods inherited from Child
#bytes, #document, #next_sibling=, #previous_sibling=, #remove, #replace_with
Methods included from Node
#each_recursive, #find_first_recursive, #indent, #index_in_parent, #next_sibling_node, #parent?, #previous_sibling_node
Constructor Details
Instance Method Details
#clone ⇒ Object
25 26 27 |
# File 'lib/extensions/rexml/rexml/cdata.rb', line 25 def clone CData.new self end |
#value ⇒ Object
38 39 40 |
# File 'lib/extensions/rexml/rexml/cdata.rb', line 38 def value @string end |
#write(output = $stdout, indent = -1,, transitive = false, ie_hack = false) ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/extensions/rexml/rexml/cdata.rb', line 59 def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) Kernel.warn( "#{self.class.name}.write is deprecated" ) indent( output, indent ) output << START output << @string output << STOP end |