Class: Gammo::XPath::NodeSet

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/gammo/xpath/node_set.rb

Overview

Class for representing node set Especially this class will be used for expressing the result of evaluation of a given XPath expressions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGammo::XPath::NodeSet

Constructs a new instance of Gammo::XPath::NodeSet.



19
20
21
22
# File 'lib/gammo/xpath/node_set.rb', line 19

def initialize
  @nodes    = []
  @disjoint = false
end

Instance Attribute Details

#disjointObject

Returns the value of attribute disjoint.



15
16
17
# File 'lib/gammo/xpath/node_set.rb', line 15

def disjoint
  @disjoint
end

#nodesObject (readonly)

Returns the value of attribute nodes.



13
14
15
# File 'lib/gammo/xpath/node_set.rb', line 13

def nodes
  @nodes
end