Created
July 14, 2014 19:51
-
-
Save hectorperez/2f6ae186c8af4eba6d9a to your computer and use it in GitHub Desktop.
__callee__ method name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def yep | |
puts "method_name: #{__callee__}" | |
end | |
> yep | |
method_name: yep | |
Also: __method__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment