Kind of outdated Ruby, but worthwhile. From Black's R4R, 2006