From: Rick DeNatale Date: 2008-03-19T19:49:56+09:00 Subject: Re: Undefined method '<' for nil:NilClasse On 3/19/08, Slark wrote: > The probblem is in the initializing. If you explicitly initialize > @kounter in the initialize method then it knows it's a Fixnum. Variables aren't typed in Ruby, nor are they declared. A variable isn't a particular class, it refers to an object, and the reference can change over the life of the program. @a = 1 #@a is now a fix num @a = @a * 1.2 # And now it's a float @a = @a.to_s # And now it's a String -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/