From: Reid Oda Date: 2008-04-03T07:10:21+09:00 Subject: using a local variable for method calls hello all, first off, thanks for all the help this board/list has offered. it has been fantastic. a workmate of mine and i are puzzling over this problem. here is a bit of pseudo code that represents it: somehash.each_key do |key| update.key "something" end obviously there is a problem with using the "key" variable to make the method call. how can we accomplish this elegantly? we've considered this: somehash.each_key do |key| eval("update.#{key}(\"something\")") end but that seems a bit cludgey. does anyone have some advice? -reid -- Posted via http://www.ruby-forum.com/.