From: Sebastian Hungerecker Date: 2008-02-03T21:20:41+09:00 Subject: Re: How to access a method when method-name is in a variable Luca Scaljery wrote: > For example, this doesn't work > > my_object.send(my_var) = 2000 If you use attr_writer :foo, it creates the method foo= which takes one argument. So you'd call it like this: send(:foo=, 2000) or my_var = "foo" send("#{my_var}=", 2000) HTH, Sebastian -- NP: Anathema - Closer Jabber: sepp2k@jabber.org ICQ: 205544826