RubyTapas Freebie: Caller-Specified Fallback Handler

Sometimes it’s hard to decide how to handle a failure in a method call. Raise an exception? Return a nil? Log an error? The best choice may differ depending on where the method is being called. In today’s free RubyTapas episode, we look at a technique for deferring the decision about how to deal with a failure to the point when a method is called.

Like what you see? This is just a taste of RubyTapas! Sign up today to get two videos a week, along with full source code and transcripts. Or click here to learn more.