From: Daniel Harple Date: 2006-01-21T00:12:53+09:00 Subject: Re: Array#each - getting each element and the index On Jan 20, 2006, at 4:06 PM, Pat Maddox wrote: > Is this using some idiom (e.g. attaching _with_index) that I don't > know about? I didn't see that method in the Array rdoc. If you do a ``ri Array'' you will see that #each_with_index is mixed in from Enumerable. see Enumerable#each_with_index for more information. -- Daniel