H
Harnish
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.<testfunc>
-----------------
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
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.<testfunc>
-----------------
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