-
September 12th, 2005, 01:20 AM
#1
Ruby equiv to PHP's call_user_func_array
Hallo all,
I was wondering if anyone knew if Ruby had an equivalent to PHP's call_user_func_array, which allows you to call functions or object methods by passing the string of the function's name. Object#send is close, but not quite. What I need is to be able to call "someMethod" by using object.blah("someMethod", params), where "blah" is the magical method in question.
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|