Skip to content

Instantly share code, notes, and snippets.

@joho
Forked from ryan-allen/try.rb
Created June 7, 2010 05:54
Show Gist options
  • Save joho/428271 to your computer and use it in GitHub Desktop.
Save joho/428271 to your computer and use it in GitHub Desktop.
try_do_thingo!
if thingo_worked_out?
sweet!
else
whatever!
end
def meh
yield
rescue
# meh....
end
meh { whatever! }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment