method
match
v2_6_3 -
Show latest stable
- Class:
REXML::XPathParser
match(path_stack, nodeset)public
No documentation available.
# File lib/rexml/xpath_parser.rb, line 128
def match(path_stack, nodeset)
nodeset = nodeset.collect.with_index do |node, i|
position = i + 1
XPathNode.new(node, position: position)
end
result = expr(path_stack, nodeset)
case result
when Array # nodeset
unnode(result)
else
result
end
end