Method: REXML::Element#get_elements

Defined in:
lib/rexml/element.rb

#get_elements(xpath) ⇒ Object

Synonym for Element.to_a This is a little slower than calling elements.each directly.

xpath

any XPath by which to search for elements in the tree

Returns

an array of Elements that match the supplied path



401
402
403
# File 'lib/rexml/element.rb', line 401

def get_elements( xpath )
  @elements.to_a( xpath )
end