From: Dominik Bathon Date: 2006-05-07T01:46:46+09:00 Subject: Re: Record good idea? Hi Ross, On Sat, 06 May 2006 12:06:32 +0200, Ross Bamford 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: irb(main):001:0> a, b, c = 1, "@#{a}", a => [1, "@", nil] irb(main):002:0> [a, b, c] => [1, "@", nil] Dominik