Created
June 25, 2012 10:10
-
-
Save rmehner/2987767 to your computer and use it in GitHub Desktop.
implicit begin block
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 throw_exception | |
raise "This is an exception" | |
rescue => e | |
puts e.message | |
end | |
throw_exception # output: "This is an exception" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment