More clarification for enumerator_feed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e95b6386a
commit
ffe4aff8b3
@ -714,11 +714,11 @@ enumerator_peek(VALUE obj)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* e.feed obj -> nil
|
* e.feed obj -> nil
|
||||||
*
|
*
|
||||||
* Set the value for the next yield in the enumerator returns.
|
* Sets the value to be returned by the next yield inside +e+.
|
||||||
*
|
*
|
||||||
* If the value is not set, the yield returns nil.
|
* If the value is not set, the yield returns nil.
|
||||||
*
|
*
|
||||||
* This value is cleared after being used.
|
* This value is cleared after being yielded.
|
||||||
*
|
*
|
||||||
* o = Object.new
|
* o = Object.new
|
||||||
* def o.each
|
* def o.each
|
||||||
|
Loading…
x
Reference in New Issue
Block a user