From: Gregory Brown Date: 2009-06-26T05:36:32+09:00 Subject: Re: Attr Methods and object setters On Thu, Jun 25, 2009 at 2:05 PM, Marc Heiler wrote: > We can do: > >  attr_accessor :bla > > Now, on an object one can do this: > >  object.bla = 'foo' > > Or >  object.bla > > to retrieve the value. > > I am wondering whether we could do this: > >  object.bla 'foo' This is the pattern I use: http://pastie.org/516343 Since it's really only valuable to me when I make certain types of DSLs, I don't see the need for it to be in the language. But I feel the above pattern is fairly clean. -greg