mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (Init_Enumerator): Override
Enumerable::Enumerator#each_with_index with #with_index. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4baf5c4da6
commit
efa115e451
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri May 23 16:44:34 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* enumerator.c (Init_Enumerator): Override
|
||||
Enumerable::Enumerator#each_with_index with #with_index.
|
||||
|
||||
Fri May 23 12:23:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_core.h (rb_num_t): moved form vm.h.
|
||||
|
|
|
@ -438,6 +438,7 @@ Init_Enumerator(void)
|
|||
rb_define_method(rb_cEnumerator, "initialize", enumerator_initialize, -1);
|
||||
rb_define_method(rb_cEnumerator, "initialize_copy", enumerator_init_copy, 1);
|
||||
rb_define_method(rb_cEnumerator, "each", enumerator_each, 0);
|
||||
rb_define_method(rb_cEnumerator, "each_with_index", enumerator_with_index, 0);
|
||||
rb_define_method(rb_cEnumerator, "with_index", enumerator_with_index, 0);
|
||||
rb_define_method(rb_cEnumerator, "next", enumerator_next, 0);
|
||||
rb_define_method(rb_cEnumerator, "rewind", enumerator_rewind, 0);
|
||||
|
|
Loading…
Reference in a new issue