From: Harnish Date: 2007-06-25T07:43:36+09:00 Subject: variables to call methods in ruby... Hi, This is Harnish. I was just wondering if I could call methods using variables? As for example: ----------------- testfunc = "func" class Test def self.func puts "hello there...!" end end Test. ----------------- 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. Regards, Harnish -- Posted via http://www.ruby-forum.com/.