Class: Rind::Cdata
- Inherits:
-
Object
- Object
- Rind::Cdata
- Includes:
- Equality, Manipulate, Traverse, Xpath
- Defined in:
- lib/rind/nodes.rb
Instance Attribute Summary
Attributes included from Traverse
Instance Method Summary collapse
-
#initialize(content) ⇒ Cdata
constructor
Create a CDATA with
content
holding the character data to contain. - #to_s ⇒ Object
Methods included from Xpath
Methods included from Traverse
#ancestors, #descendants, #down, #next, #next_siblings, #prev, #prev_siblings, #siblings, #up
Methods included from Manipulate
#insert_after, #insert_before, #remove
Methods included from Equality
Constructor Details
#initialize(content) ⇒ Cdata
Create a CDATA with content
holding the character data to contain.
29 30 31 |
# File 'lib/rind/nodes.rb', line 29 def initialize(content) @content = content end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/rind/nodes.rb', line 33 def to_s "<![CDATA[#{@content}]]>" end |