Class: VCDOM::Text

Inherits:
CharacterData show all
Includes:
Child
Defined in:
lib/vcdom/text.rb

Instance Method Summary collapse

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

#data, #data=, #length

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_nameObject



18
19
20
# File 'lib/vcdom/text.rb', line 18

def node_name
  "#text"
end

#node_typeObject



15
16
17
# File 'lib/vcdom/text.rb', line 15

def node_type
  TEXT_NODE
end