Skip to content

Instantly share code, notes, and snippets.

@fsword
Forked from ihower/gist:3203697
Created July 30, 2012 03:12
Show Gist options
  • Save fsword/3203913 to your computer and use it in GitHub Desktop.
Save fsword/3203913 to your computer and use it in GitHub Desktop.
def foo
111
rescue
222
ensure
333
end
puts foo # got 111
def bar
111
rescue
222
ensure
return 333
end
puts bar # got 333
def bar
0 / 0
rescue
return 222
ensure
return 333
end
puts bar # got 333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment