ruby - Is there a way to know the invoking method? -
I know that class method tells me what is the name of the class of an object, how can I start? Is there any way to know this?
shares this information:
Do you ever call the call stack Wanted to see without any exception?
caller.each {| C | Puts c}
Comments
Post a Comment