On Aug 29, 2008, at 2:56 PM, Charles Turner wrote:
next() doesn’t take a block.
Thanks. That tidbit seems like an omission from Flanagan’s book,
although I suppose it’s not easy to track everything going on with
Ahh… that’s why you need the 3rd edition PickAxe–
I’ve been tracking all the 1.9 changes. I just added the descriptions
of 19 new methods added in the last 4 days, including the curiously
useful each_with_object. (The next beta containing these changes
hasn’t been released yet—I’m still working on the section describing
the new trust mechanism).
All in all, over two hundred methods have been added to 1.9 since the
start of the year.
Would that make next() the only enumerable() that doesn’t take a
Methods such as #first and #take don’t take a block either.