From: Peter Hickman Date: 2005-10-19T00:25:06+09:00 Subject: Re: Unit testing an each function James Edward Gray II wrote: > On Oct 18, 2005, at 10:04 AM, Peter Hickman wrote: > >> # What I want to work is >> >> data.each.each{|i| puts i} > > > If you know there's going to be Enumerable objects in there, perhaps > you could redefine each() to handle the nesting, or provide another > iterator for this... > > James Edward Gray II It's no great hardship it is just that I was taken aback when data.each.each{...} didn't work, it seemed like the right thing to type at that point.