Skip to content

Instantly share code, notes, and snippets.

@filipechagas
Created March 19, 2015 19:08
Show Gist options
  • Save filipechagas/49f9f8528158217341f8 to your computer and use it in GitHub Desktop.
Save filipechagas/49f9f8528158217341f8 to your computer and use it in GitHub Desktop.
How to discover the caller method name in ruby
caller[0][/`([^']*)'/, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment