Martin Fowler wrote an article in his Bliki on Closures. He uses Ruby as demonstration language for closures. On this page the same example is nearly written in Groovy:
The whole example with class Employee and some explaining assertions (Dierk would call this Inline Unittests).
Labels