Skip to content

Instantly share code, notes, and snippets.

@joho
Forked from ryan-allen/try.rb
Created Jun 7, 2010
Embed
What would you like to do?
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