From: Satish Talim Date: 2006-11-16T18:46:03+09:00 Subject: Re: newbie question about attr_reader ------=_Part_14048_29973871.1163670359099 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/16/06, ravi rao wrote: > > Hi, > Why cant i have an attribute reader for a class variable. > Thanks, > Ravi Rao > > The reason being that in Ruby, instance variables are exposed to the outside world via one of the attr family of methods. -- Satish Talim Learning Ruby - http://rubylearning.com/ ------=_Part_14048_29973871.1163670359099--