John Feminella wrote in post #988344:
> Yes. Make sure the value you're storing in @pop is a Fixnum.

Or any Integer value in fact.

My guess is that @pop contains nil, so you get an error like "no method 
'times' for nil" - it would be much clearer if you posted the actual 
exception.

-- 
Posted via http://www.ruby-forum.com/.