Skip to content

Instantly share code, notes, and snippets.

@ErebusBat
Created November 2, 2015 17:26
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 ErebusBat/30debc829a28fc2dccce to your computer and use it in GitHub Desktop.
Save ErebusBat/30debc829a28fc2dccce to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
def method2
1/0
end
def method1(bare)
begin
method2
rescue Exception => e
puts "Caught exception, bare=#{bare}"
raise if bare
raise e
end
end
# method1 true
method1 false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment