Skip to content

Instantly share code, notes, and snippets.

@rmehner
Created June 25, 2012 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmehner/2987767 to your computer and use it in GitHub Desktop.
Save rmehner/2987767 to your computer and use it in GitHub Desktop.
implicit begin block
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