From: Love U Ruby Date: 2013-02-04T19:14:38+09:00 Subject: Re: Confusion with Enum#with_object block argument construct 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! -- Posted via http://www.ruby-forum.com/.