mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 2 deletions
|
@ -714,11 +714,11 @@ enumerator_peek(VALUE obj)
|
|||
* call-seq:
|
||||
* 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.
|
||||
*
|
||||
* This value is cleared after being used.
|
||||
* This value is cleared after being yielded.
|
||||
*
|
||||
* o = Object.new
|
||||
* def o.each
|
||||
|
|
Loading…
Reference in a new issue