1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rdoc update.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-08-19 20:26:38 +00:00
parent fb99416115
commit ce46bc6345

View file

@ -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