Aren't closures just grand? Check out this blog from Martin Fowler on closures in Ruby: http://martinfowler.com/bliki/CollectionClosureMethod.html