method
collect
collect( xpath=nil, &block )
public
Hide source
# File lib/rexml/element.rb, line 894 def collect( xpath=nil, &block ) collection = [] XPath::each( @element, xpath ) {|e| collection << yield(e) if e.kind_of?(Element) } collection end