Created
August 24, 2012 09:12
-
-
Save undecided/3447966 to your computer and use it in GitHub Desktop.
I got caught out by this. Anyone want to guess which string gets returned by this method?
This file contains 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 foo | |
raise "I iz a fool" | |
"But you don't know, man" | |
rescue Exception => e | |
"I caught your foolness" | |
ensure | |
"and I returned you a fish" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If that boggled your noggin, try this for size: