Class: VTD::Xml::Node

Inherits:
Object
  • Object
show all
Includes:
Attributes
Defined in:
lib/vtd/xml/node.rb,
lib/vtd/xml/node/attributes.rb

Defined Under Namespace

Modules: Attributes

Constant Summary

Constants included from Attributes

Attributes::AttributeMissing

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Attributes

#[], #attributes, #fetch, #slice

Constructor Details

#initialize(nav, auto_pilot, current) ⇒ Node

Returns a new instance of Node.



10
11
12
13
14
15
# File 'lib/vtd/xml/node.rb', line 10

def initialize(nav, auto_pilot, current)
  @nav        = nav
  @auto_pilot = auto_pilot
  @current    = current
  super
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/vtd/xml/node.rb', line 8

def name
  @name
end

#textObject (readonly)

Returns the value of attribute text.



8
9
10
# File 'lib/vtd/xml/node.rb', line 8

def text
  @text
end