Method: HTMLTree::TreeElement#rexml_match

Defined in:
lib/web/htmltools/xpath.rb

#rexml_match(path) ⇒ Object

Given the XPath path, return an Array of matching sub-elements of the REXML tree.



18
19
20
21
# File 'lib/web/htmltools/xpath.rb', line 18

def rexml_match(path)
  node = as_rexml_document
  REXML::XPath.match(node, path)
end