Libraries
»
goat
(0.3.48)
»
Index (I)
»
Integer
Class: Integer
Inherits:
Object
Object
Integer
show all
Defined in:
lib/goat/extn.rb
Instance Method Summary
collapse
#
times_collect
⇒ Object
Instance Method Details
#
times_collect
⇒
Object
10 11 12
# File 'lib/goat/extn.rb', line 10
def
times_collect
(
1
..
self
)
.
collect
{
|
n
|
yield
}
end