module Goodyear::Enumerable

Public Instance Methods

collect() { |result| ... } click to toggle source
# File lib/goodyear/enumerable.rb, line 13
def collect &block
  results.collect do |result|
    if block_given? 
      block.call result
    else
      yield result
    end
  end
end
each() { |result| ... } click to toggle source
# File lib/goodyear/enumerable.rb, line 3
def each &block
   results.each do |result|
     if block_given?
       block.call result
     else
       yield result
     end
   end
 end