From: "David A. Black" Date: 2008-05-06T00:33:03+09:00 Subject: Re: attr_accessor for class variable? Hi -- On Tue, 6 May 2008, Davi Vidal wrote: > Em Monday 05 May 2008, sayoyo Sayoyo escreveu: >> Hi, >> >> Is there an equivalent for attr_acessor for the class varialbles? or I >> have to write a function each time I wish to exppse the class varaible >> to other clasess? >> > > attr_acessor applies on class variables, doesn't it? No, it's a class method that creates instance methods wrapped around instance variables (read/write methods). David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates!