Back in 2012 I wrote an article about closure design patterns. I used Groovy as a programming language but now I have decided to use Ruby (the programming language that I mainly have been using for two years). This article was featured on issue #231 of Ruby Weekly newsletter. I want to keep the same examples, so I have created a helper method to make assertions. def assert(expression) raise "Asser