One can do this:
s="puts"
send(s,"Hello World!")
# => Hello World!
How can one check if s is a method? If it was:
s="nomethod"
send(s,arg) will fail.
This would be cool:
ismethod? s
P.S. I am porting something from PHP, which relies on:
if (function_exists($s))
...
If only Ruby had something so simple.