[前][次][番号順一覧][スレッド一覧]

ruby-changes:5063

From: knu <ko1@a...>
Date: Fri, 23 May 2008 16:50:49 +0900 (JST)
Subject: [ruby-changes:5063] Ruby:r16558 (trunk): * enumerator.c (Init_Enumerator): Override

knu	2008-05-23 16:47:54 +0900 (Fri, 23 May 2008)

  New Revision: 16558

  Modified files:
    trunk/ChangeLog
    trunk/enumerator.c

  Log:
    * enumerator.c (Init_Enumerator): Override
      Enumerable::Enumerator#each_with_index with #with_index.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16558&r2=16557&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enumerator.c?r1=16558&r2=16557&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16557)
+++ ChangeLog	(revision 16558)
@@ -1,3 +1,8 @@
+Fri May 23 16:44:34 2008  Akinori MUSHA  <knu@i...>
+
+	* enumerator.c (Init_Enumerator): Override
+	  Enumerable::Enumerator#each_with_index with #with_index.
+
 Fri May 23 12:23:05 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_core.h (rb_num_t): moved form vm.h.
Index: enumerator.c
===================================================================
--- enumerator.c	(revision 16557)
+++ enumerator.c	(revision 16558)
@@ -438,6 +438,7 @@
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]