On Thu, Jun 25, 2009 at 2:05 PM, Marc Heiler<shevegen / linuxmail.org> wrote:
> We can do:
>
> =A0attr_accessor :bla
>
> Now, on an object one can do this:
>
> =A0object.bla =3D 'foo'
>
> Or
> =A0object.bla
>
> to retrieve the value.
>
> I am wondering whether we could do this:
>
> =A0object.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