From: Shu-yu Guo Date: 2004-04-06T07:19:01+09:00 Subject: Re: object.@attribute Hal Fulton wrote: > In practice, I've never used attr_writer. It's hard to imagine > something useful being write-only and not readable. (Insert > Perl wisecrack here.) I use it when I want to define a toggle, like the following: class Foo attr_writer :bar def bar? @bar end end Not that I _can't_ use attr_accessor, I just don't want to in this case. -- That's some catch, that Catch-22. Oh, it's the best there is.