Skip to content

Instantly share code, notes, and snippets.

@unnitallman
Created October 23, 2011 12:52
Show Gist options
  • Save unnitallman/1307331 to your computer and use it in GitHub Desktop.
Save unnitallman/1307331 to your computer and use it in GitHub Desktop.
How to get a method's name from within that method
def test_method
puts __method__
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment