Module: Treat::Helpers::Object::CallerMethod
- Defined in:
- lib/treat/helpers/object.rb
Overview
Allow introspection onto what method called another one at runtime (useful for debugging).
Constant Summary collapse
- CMPattern =
Pattern to match method from trace.
/^(.+?):(\d+)(?::in `(.*)')?/
Instance Method Summary collapse
-
#caller_method(n = 3) ⇒ Object
Return the name of the method that called the method that calls this method.