05 Nov '12, 1am

使ったこと無かった…! each_with_object (Enumerable) - APIdock

that you can’t use immutable objects like numbers, true or false as the memo. You would think the following returns 120, but since the memo is never changed, it does not.

Full article: http://apidock.com/rails/Enumerable/each_with_object

Tweets