mulligan - a Ruby idea for dealing with things that fail frequently
Note: There seems to be some weird style issues with gist on this Tumblr theme. There isn’t enough horizontal padding between keywords. Sorry.
Twitter fails a lot. It got me thinking about an elegant way to deal with things that fail frequently. This is how I wanted to be able to write code:
Here is how I accomplished it:
I’m gonna tweak it into a gem eventually, but I want some nerd feedback first. I can see a whole bunch of options being added: which exceptions to catch, custom handlers, etc…
What do you think?
