Skip to content

Instantly share code, notes, and snippets.

@hopsoft
Created April 12, 2012 15:52
Show Gist options
  • Save hopsoft/2368535 to your computer and use it in GitHub Desktop.
Save hopsoft/2368535 to your computer and use it in GitHub Desktop.
Get the currently executing method's name
def current_method_name
caller[0][/`([^']*)'/, 1].to_sym
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment