How to call a function with a variable value

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:

http://khelll.com/blog/ruby/ruby-dynamic-method-calling/