Martin Fowler wrote an article in his Bliki on Closures - Informal Guide. 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 (with an dispensible, but convenient, because boosting readability, toString() method), an example list with four employees and some explaining assertions (Dierk would call this Inline Unittests):
Labels