Code from a short talk I gave on Ruby blocks at June 2014 a2rb meetup.