class Gammo::XPath::AST::Path
@!visibility private
Attributes
filter[R]
location_path[R]
Public Class Methods
new(filter, location_path)
click to toggle source
# File lib/gammo/xpath/ast/path.rb, line 87 def initialize(filter, location_path) @filter = filter @location_path = location_path end
Public Instance Methods
evaluate(context)
click to toggle source
# File lib/gammo/xpath/ast/path.rb, line 92 def evaluate(context) node_set = filter.evaluate(context).to_node_set(context) location_path.evaluate_with_node_set(context, node_set) Value::NodeSet.new(node_set) end