From: Diego Virasoro Date: 2006-10-23T19:25:11+09:00 Subject: Re: newbie: class attribute accessors? > Please explain. Use an example. >From what I understood, for any instance variable, I can make ruby automatically produce the accessors. For example: class Dog @name @@NumberOfLegs = 4 attr_accessor :name end x = Animal.new ... puts x.name However, I would like to do something similar for class variables. So for example in the above example, for @@NumberOfLegs. Is this possible? Thank you Diego Virasoro