From: Robert Klemme Date: 2009-05-16T22:45:04+09:00 Subject: Re: obj.attr(qualifier) = value -- possible? On 15.05.2009 21:50, Michael Schuerig wrote: > This allows me to write code like > > movie.participants.as('actor') > > On top of that, I'd like to be able to write > > movie.participants.as('actor') = params[:movie][:actors] > > and that's where I'm stuck. The *only* way to modify behavior of the assignment operator in Ruby is the route through []= AFAIK. If you want to use "=" you will have to do down that route. But I see you have got your working solution already. Just wanted to make sure expectations are not unrealistic. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/