From: Martin DeMello Date: 2003-02-02T21:30:53+09:00 Subject: Re: dynamic method name...was RE: hash question... ts wrote: >>>>>> "D" == Dwayne Smurdon @ DNA Media Pro writes: > > D> contact.phone = "703-277-7272" > > Use #send > > contact.send("#{meth}=", "703-277-7272") And if you do this a lot, you can get struct-like behaviour using def []=(meth, args) send("#{meth}=", args) end and call it with contact['phone'] = "wha-te-ver" martin