From: tamouse mailing lists Date: 2013-02-04T19:19:51+09:00 Subject: Re: Confusion with Enum#with_object block argument construct On Mon, Feb 4, 2013 at 4:14 AM, Love U Ruby wrote: > Matthew Kerwin wrote in post #1095078: >> On 4 February 2013 17:02, Love U Ruby wrote: > >>> (A) from the source code, Is there any way to get the right construct >> rather blind try. >> >> I started by Googling 'ruby array each_cons', which lead me to < >> http://ruby-doc.org/core-1.9.3/Enumerable.html> which says that >> each_cons >> without a block returns an enumerator. I then searched for 'ruby >> enumerator with_object' which lead me to < >> http://ruby-doc.org/core-1.9.3/Enumerator.html#method-i-with_object> >> > > @Matthew - Thank you very much for your help! Well you should thank him for doing your searching and reading for you.