Class: Gammo::XPath::AST::Axis::DescendantOrSelf
- Inherits:
-
Gammo::XPath::AST::Axis
- Object
- Gammo::XPath::AST::Axis
- Gammo::XPath::AST::Axis::DescendantOrSelf
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
122
123
124
125
126
127
128
|
# File 'lib/gammo/xpath/ast/axis.rb', line 122
def strain(context, context_node, node_set)
node_set << context_node if node_test.match?(context_node)
return if context_node.instance_of?(Gammo::Attribute)
context_node.each_descendant do |node|
node_set << node if node_test.match?(node)
end
end
|