class Gammo::XPath::NodeSet
Class for representing node set Especially this class will be used for expressing the result of evaluation of a given XPath
expressions.
Attributes
disjoint[RW]
nodes[R]
Public Class Methods
new()
click to toggle source
Constructs a new instance of Gammo::XPath::NodeSet
. @return [Gammo::XPath::NodeSet]
# File lib/gammo/xpath/node_set.rb, line 19 def initialize @nodes = [] @disjoint = false end
Public Instance Methods
replace(other)
click to toggle source
Replaces self nodes with an other node set destructively. @param [Gammo::XPath::NodeSet] other @return [Gammo::XPath::NodeSet] @!visibility private
# File lib/gammo/xpath/node_set.rb, line 28 def replace(other) @nodes.replace(other.nodes) end
subtrees_are_disjoint?()
click to toggle source
@!visibility private
# File lib/gammo/xpath/node_set.rb, line 33 def subtrees_are_disjoint? !!@disjoint end
to_s()
click to toggle source
@!visibility private
# File lib/gammo/xpath/node_set.rb, line 38 def to_s first.to_s end