Ruby REXML::QuickPath Functions
EditRocket provides the following information on REXML::QuickPath functions in the Ruby source code builder.
attribute( name ) -
axe( elements, axe_name, rest ) -
each(element, path, namespaces=EMPTY_HASH, &block) -
filter(elements, path) - Given an array of nodes it filters the array based on the path. The result is that when this method returns, the array will contain elements which match the path
first(element, path, namespaces=EMPTY_HASH) -
function( elements, fname, rest ) -
match(element, path, namespaces=EMPTY_HASH) -
method_missing( id, *args ) -
parse_args( element, string ) -
predicate( elements, path ) - A predicate filters a node-set with respect to an axis to produce a new node-set. For each node in the node-set to be filtered, the PredicateExpr is evaluated with that node as the context node, with the number of nodes in the node-set as the context size, and with the proximity position of the node in the node-set with respect to the axis as the context position; if PredicateExpr evaluates to true for that node, the node is included in the new node-set; otherwise, it is not included.