Having the function name 'foo' and its argument 'arg' in strings, is there a way to execute foo(arg)? Do I need to use eval? I want to do something like send(foo, arg) if it were in Ruby.
Having the function name ‘foo’ and its argument ‘arg’ in strings, is there a
Share
You can use indexer notation: