зеркало из https://github.com/github/ruby.git
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fb99416115
Коммит
ce46bc6345
13
enumerator.c
13
enumerator.c
|
@ -625,13 +625,12 @@ next_init(VALUE obj, struct enumerator *e)
|
|||
* p e.next
|
||||
* p e.next
|
||||
*
|
||||
* # result
|
||||
* # next_values next
|
||||
* # [] nil
|
||||
* # [1] 1
|
||||
* # [1, 2] [1, 2]
|
||||
* # [nil] nil
|
||||
* # [[1, 2]] [1, 2]
|
||||
* ## yield args next_values next
|
||||
* # yield [] nil
|
||||
* # yield 1 [1] 1
|
||||
* # yield 1, 2 [1, 2] [1, 2]
|
||||
* # yield nil [nil] nil
|
||||
* # yield [1, 2] [[1, 2]] [1, 2]
|
||||
*
|
||||
* Note that enumeration sequence by next_values method does not affect other
|
||||
* non-external enumeration methods, unless underlying iteration
|
||||
|
|
Загрузка…
Ссылка в новой задаче