From: Marc Heiler Date: 2012-04-04T02:33:46+09:00 Subject: Re: How to access Class variable? Ruby Mania, If you use something like: attr_accessor :category Then you get two methods for "free": your_object.category and your_object.category = 'some value here' You can do so on your own, always, as well: class Foo def category @category end def category=(input) @category = input end end -- Posted via http://www.ruby-forum.com/.