Ruby 1.8 doesn't have `each_with_object`