On Tue, 03 Jul 2012 09:20:11 +0200 "Sebastian H." <li...@ruby-forum.com> wrote:
> to get to the value of tst.d1 i can use > tst.send a[0].to_sym > > how can i change the value of d1 in this way ? > something like > tst.send a[0].to_sym = "hello" ?? Almost, but, you myst to send `:d1=` symbol, so correct call is: tst.send :"#{a[0]}=" = "hello" -- Sincerely yours, Aleksey V. Zapparov A.K.A. ixti FSF Member #7118 Mobile Phone: +34 677 990 688 Homepage: http://www.ixti.net JID: zappa...@jabber.ru *Origin: Happy Hacking!
signature.asc
Description: PGP signature