def test() puts "calling from variable" end
x="test" # or x="test()"
From above code, how can I call function with the variable x.
def test() puts "calling from variable" end
x="test" # or x="test()"
From above code, how can I call function with the variable x.
dynamic method call in Ruby: