Class: VCDOM::Text
- Inherits:
-
CharacterData
- Object
- Node
- CharacterData
- VCDOM::Text
- Includes:
- Child
- Defined in:
- lib/vcdom/text.rb
Instance Method Summary collapse
-
#initialize(doc, data) ⇒ Text
constructor
A new instance of Text.
- #node_name ⇒ Object
- #node_type ⇒ Object
Methods included from Child
#_leave_from_tree, #_set_next_sibling, #_set_parent_node, #initialize_child, #next_sibling, #parent_node, #previous_sibling
Methods inherited from CharacterData
Constructor Details
#initialize(doc, data) ⇒ Text
Returns a new instance of Text.
11 12 13 |
# File 'lib/vcdom/text.rb', line 11 def initialize( doc, data ) super( doc, data ) end |
Instance Method Details
#node_name ⇒ Object
18 19 20 |
# File 'lib/vcdom/text.rb', line 18 def node_name "#text" end |
#node_type ⇒ Object
15 16 17 |
# File 'lib/vcdom/text.rb', line 15 def node_type TEXT_NODE end |