method

collect

v1_9_2_180 - Show latest stable - Class: REXML::Elements
collect( xpath=nil, &block )
public

No documentation available.

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