On Sun, 2006-05-07 at 01:46 +0900, Dominik Bathon wrote:
> Hi Ross,
> 
> On Sat, 06 May 2006 12:06:32 +0200, Ross Bamford <rossrt / roscopeco.co.uk>  
> wrote:
> 
> > class Record
> >   def method_missing(sym, *a)
> >     if (name = sym.to_s) =~ /[^=]=$/
> >       rdr, ivar, value = name.chop, "@#{rdr}", a.first
> 
> This doesn't work as you think, Ruby first creates an array of the values  
> on the right hand side and then assigns it to the variables on the left:

Oops. Something was bothering me when I did that, now I know what...
Thanks :)

-- 
Ross Bamford - rosco / roscopeco.REMOVE.co.uk