From: Robert Dober Date: 2008-05-07T07:59:53+09:00 Subject: Re: attr_accessor for class variable? On Mon, May 5, 2008 at 5:35 PM, Robert Klemme wrote: > You can just use attr_* family of methods - but you need to apply them to a > different object, namely the singleton class of the class object: Robert you just defined accessors to class instance variables, not class variables. Of course one should always use class instance variables instead of class variables. I believe that class variables are evil and class instance variables are good ;). If however class instance variables are used and there is nothing OP can do about it, he can implement the caccessor methods as in Rails. HTH Robert -- http://ruby-smalltalk.blogspot.com/ --- Whereof one cannot speak, thereof one must be silent. Ludwig Wittgenstein