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

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -