method
collect
v2_6_3 -
Show latest stable
- Class:
REXML::Elements
collect( xpath=nil )public
No documentation available.
# File lib/rexml/element.rb, line 930
def collect( xpath=nil )
collection = []
XPath::each( @element, xpath ) {|e|
collection << yield(e) if e.kind_of?(Element)
}
collection
end