From: stephen.hill@... (Steve Hill) Date: 2002-01-16T23:55:14+09:00 Subject: attr_{reader|writer|accessor} for class methods Hi, how do I implement an atribute reader/writer/accessor for a class variable? Something on the lines of class Foo attr_reader :Foo.bar @@bar="baz" end puts Foo.bar Foo.bar="wibble" puts Foo.bar although this gives the following: /home/stehill1/tmp/attr.rb:4: undefined method `bar' for :Foo:Symbol (NameError) Thanks Steve