Skip to content

Instantly share code, notes, and snippets.

@kiall
Created August 31, 2011 23:33
Show Gist options
  • Save kiall/1185041 to your computer and use it in GitHub Desktop.
Save kiall/1185041 to your computer and use it in GitHub Desktop.
class Bla
def some_method()
begin
// Do some shit
rescue
retry if bla bla
ensure
// Normal Finally block
end
rescue
puts "Something went wrong outside the above begin/rescue block"
ensure
// Runs when you return ..
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment