Possible Duplicate:
How to turn a string into a method call?
Using Ruby 1.9, how does one call a method which is contained within a string. I have attempted the following:
self.'method_name'
Basically what I am attempting to do is call methods based on a common naming convention building on the current methods name. I would like to be be able to call
self."#{__method__}_path"
and give I am in method search
have the code execute as if I was calling
self.search_path