method
match

match(path_stack, nodeset)
public
Hide source
# 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