Yes. Make sure the value you're storing in @pop is a Fixnum. What's
the value of @pop when you try to use it?

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/



On Sat, Mar 19, 2011 at 16:50, Jen <jen.bottom / gmail.com> wrote:
>
> Hello,
>
> I have a variable that stores the population input by a user. I then
> want to use this value in the following method:
>
>  4.times{ @offspring<< @board.clone }
> #puts @offspring.inspect
> end
>
> I tried:
>
>  @pop.times
>
> but this returned a 'no method' error.
>
> Is there a simple way to use the value stored in @pop in this way?
>
> Thanks,
> Jen.
>
>
>
>