Created
October 14, 2009 10:20
-
-
Save kakutani/209957 to your computer and use it in GitHub Desktop.
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 f | |
send(:__method__) | |
end | |
puts f |
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
$ ruby -v __method__.rb | |
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9] | |
send | |
$ ruby19 -v __method__.rb | |
ruby 1.9.2dev (2009-10-13 trunk 25323) [i386-darwin9.8.0] | |
f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment