Class: Gammo::XPath::NodeSet
- Inherits:
-
Object
- Object
- Gammo::XPath::NodeSet
- 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
-
#disjoint ⇒ Object
Returns the value of attribute disjoint.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize ⇒ Gammo::XPath::NodeSet
constructor
Constructs a new instance of Gammo::XPath::NodeSet.
Constructor Details
#initialize ⇒ Gammo::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
#disjoint ⇒ Object
Returns the value of attribute disjoint.
15 16 17 |
# File 'lib/gammo/xpath/node_set.rb', line 15 def disjoint @disjoint end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
13 14 15 |
# File 'lib/gammo/xpath/node_set.rb', line 13 def nodes @nodes end |