Class: Gammo::XPath::AST::Axis::Preceding
- Inherits:
-
Gammo::XPath::AST::Axis
- Object
- Gammo::XPath::AST::Axis
- Gammo::XPath::AST::Axis::Preceding
show all
- Defined in:
- lib/gammo/xpath/ast/axis.rb
Constant Summary
Constants included
from Subclassify
Subclassify::NotFoundError
Instance Method Summary
collapse
Instance Method Details
#strain(context, context_node, node_set) ⇒ Object
188
189
190
191
192
193
|
# File 'lib/gammo/xpath/ast/axis.rb', line 188
def strain(context, context_node, node_set)
context_node = context_node.owner_element if context_node.instance_of?(Gammo::Attribute)
each_preceding(context_node) do |node|
node_set << node if node_test.match?(node)
end
end
|