Class: Integer

Inherits:
Object show all
Defined in:
lib/goat/extn.rb

Instance Method Summary collapse

Instance Method Details

#times_collectObject



10
11
12
# File 'lib/goat/extn.rb', line 10

def times_collect
  (1..self).collect {|n| yield}
end