From: Lionel Thiry Date: 2005-03-15T22:55:04+09:00 Subject: Re: need for a class_attr methods collection ts wrote: >>>>>>"L" == Lionel Thiry writes: > > L> class MyClass > L> @a = "value" > > L> class_attr_reader :a > > class << self > attr_reader :a > end > > L> end > L> puts Test.a # it doesn't work Oh my! Completly forgotten that way of writing things. Thnaks for the tip. > > L> I know class variables are already accessible through @@a. > > No, don't make confusion between class instance variable (i.e. @a in your > example) and class variables (i.e. @@a) > Really? *making some test* You're right, indeed. Sorry for the confusion. Regards, Lionel Thiry