From: oinkoink+unet@... (Bret Jolly) Date: 2004-05-25T10:08:44+09:00 Subject: Re: Numeric#of "Ara.T.Howard" wrote in message news:... > ~ > cat of.rb > class Numeric > def of > ret = [] > times{|i| ret << yield(i)} > ret > end > end > them = 3.of{ Array.new } > p them # => [[],[],[]] irb(main):061:0> 6.of{1} + dozen.div(2).of{'the other'} [1, 1, 1, 1, 1, 1, "the other", "the other", "the other", "the other", "the other", "the other"] Heh!