Skip to content

Instantly share code, notes, and snippets.

@latortuga
Created September 22, 2015 17:42
Show Gist options
  • Save latortuga/562e42ab2044cf1ede1d to your computer and use it in GitHub Desktop.
Save latortuga/562e42ab2044cf1ede1d to your computer and use it in GitHub Desktop.
def method_name
state.thing_that_throws
rescue
state.error
ensure
state.thing
state
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment