From: "David A. Black" Date: 2007-03-18T05:56:56+09:00 Subject: Re: attr_accessor question Hi -- On 3/17/07, Stefano Crocco wrote: > Alle sabato 17 marzo 2007, Rick DeNatale ha scritto: > > > def var=value > > > @var=value > > > end > > > > Actually the setter should be > > > > def var=(value) > > @var=value > > end > > Do you mean I should put value into brackets? If so, why? To me, it seems that > my form works perfectly. Is there something I'm not aware of? It looks a bit unusual, not having parentheses or at least a space. But it will parse. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)