From: Love U Ruby Date: 2013-05-20T14:54:02+09:00 Subject: Re: Enum#each issue From the Doc:http://www.ruby-doc.org/core-1.9.3/Enumerator.html#method-i-feed Enum#feed: Sets the value to be returned by the next yield inside e.If the value is not set, the yield returns nil.This value is cleared after being yielded. I tried one example but it is not the one I think to understand the `#feed` method. a = [1,2,3,4].to_enum p a.next #=> 1 a.feed 'foo' p a.next #=> 2 , I expected here 'foo' Can anyone give me a good example to understand how the `#feed` method works? -- Posted via http://www.ruby-forum.com/.