Created
June 14, 2011 16:20
-
-
Save aaronfeng/1025253 to your computer and use it in GitHub Desktop.
Random rescue trivia
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
# before running the program, do you know what is the output? | |
begin | |
begin | |
raise Exception.new | |
rescue | |
puts "Inner Exception" | |
end | |
rescue Exception | |
puts "Outter Exception!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment