From: Nikolai Weibull Date: 2007-11-19T19:30:06+09:00 Subject: Re: wondering about #tap (was: Re: Thoughts about Array#compact!, Array#flatten!, Array#reject!, String#strip!, String#capitalize!, String#gsub!, etc.) On Nov 16, 2007 6:20 PM, James Edward Gray II wrote: > def build_array > Array.new(3) do { |i| i } # if (1..3).to_a is cheating > end This only works for Arrays, not Objects in general.