From: Florian Gross Date: 2005-03-31T09:14:44+09:00 Subject: Re: Defining a Class Accessor Navindra Umanee wrote: > Well, the idea is to have shared storage for all objects of a > particular class, right? Which can be done like this, anyway: class Foo class << self attr_accessor :space end def method() use self.class.space end end What I dislike about @@vars is that they behave differently depending on what context you are in -- method vs. class/module definition scope.