Ensure with Explicit Return
Consider the following method. Assume that the call to thing.method_that_possibly_raises! might raise an app exception we will call SomeAppException? What we have here is a code smell. Let’s consider what ensure does. The ensure clause in Ruby…