From: Tim Hunter Date: 2007-06-25T07:48:25+09:00 Subject: Re: variables to call methods in ruby... 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) -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]