From: Pit Capitain Date: 2006-03-14T19:53:19+09:00 Subject: Re: Writing Good #each Methods? Paul Battley schrieb: > Wouldn't it be nice if inject did the same, though? E.g. > hash.inject([]){ |acc, key, value| ... } Paul, you have to use parentheses: hash.inject([]){ |acc, (key, value)| ... } Regards, Pit