Class: REXML::CData
Constant Summary collapse
- START =
'<![CDATA['
- STOP =
']]>'
- ILLEGAL =
/(\]\]>)/
Constants inherited from Text
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, #parent=, #value=, #wrap, #write_with_substitution, #xpath
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
#value ⇒ Object
39 40 41 |
# File 'lib/rexml/cdata.rb', line 39 def value @string end |
#write(output = $stdout, indent = -1,, transitive = false, ie_hack = false) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/rexml/cdata.rb', line 60 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 |