Class: Gammo::XPath::AST::Axis::PrecedingSibling
- Inherits:
-
Gammo::XPath::AST::Axis
- Object
- Gammo::XPath::AST::Axis
- Gammo::XPath::AST::Axis::PrecedingSibling
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
212
213
214
215
216
217
218
|
# File 'lib/gammo/xpath/ast/axis.rb', line 212
def strain(context, context_node, node_set)
return if context_node.instance_of?(Gammo::Attribute)
node = context_node
while node = node.previous_sibling
node_set << node if node_test.match?(node)
end
end
|