From: "yermej@..." Date: 2007-06-25T08:50:04+09:00 Subject: Re: variables to call methods in ruby... On Jun 24, 5:48 pm, Tim Hunter wrote: > Harnish wrote: > > Essentially I want to call Test.func; but "func" lies in the variable > > testfunc; is it possible for me to invoke Test.func using variable > > testfunc? If yes, how? Any ideas, greatly appreciated. > > Check out the "__send__" method: > > var = "func" > obj.__send__(var, args) I've always used it without the underscores: var = "func" obj.send "func", an_arg