Skip to content

Instantly share code, notes, and snippets.

@lopopolo
Created February 28, 2012 06:40
Show Gist options
  • Save lopopolo/1930231 to your computer and use it in GitHub Desktop.
Save lopopolo/1930231 to your computer and use it in GitHub Desktop.
The power of try-catch-finally
def fun
begin
return "begin"
ensure
return "ensure"
end
end
puts "fun returned: '#{fun}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment