Class: Oga::XML::Cdata
- Inherits:
-
CharacterNode
- Object
- Node
- CharacterNode
- Oga::XML::Cdata
- Defined in:
- lib/oga/xml/cdata.rb
Overview
Class used for storing information about CDATA tags.
Instance Attribute Summary
Attributes inherited from CharacterNode
Attributes inherited from Node
Instance Method Summary collapse
-
#to_xml ⇒ String
Converts the node back to XML.
Methods inherited from CharacterNode
Methods inherited from Node
#after, #before, #children, #children=, #html?, #initialize, #next, #next_element, #parent, #previous, #previous_element, #remove, #replace, #root_node, #xml?
Methods included from Traversal
Constructor Details
This class inherits a constructor from Oga::XML::CharacterNode
Instance Method Details
#to_xml ⇒ String
Converts the node back to XML.
12 13 14 |
# File 'lib/oga/xml/cdata.rb', line 12 def to_xml "<![CDATA[#{text}]]>" end |