From: Brian Candler Date: 2011-03-20T06:16:39+09:00 Subject: Re: Using value from variable in .times method? 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/.