From: Haruka YAGNI Date: 2011-04-05T18:47:10+09:00 Subject: Re: Separate new lines from an output Hi Leo. On Tue, Apr 5, 2011 at 6:30 PM, Leo M. wrote: > I'm trying to make 87 different objects, since if i try to push this > result into an array, the array.size is always 1. How could I have 87 > different objects to push in an array? I might misunderstand what you want to do, but how about this? Array.new(87) { "" } # => ["", "", ...(87 times)] If you want to set length of the array according to some variable. Array.new(some_variable) { "" } Each element of array is different. -- Haruka YAGNI