ts <decoux / moulon.inra.fr> wrote:
>>>>>> "D" == Dwayne Smurdon @ DNA Media Pro <smurdon / dnamediapro.com> 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