ruby-changes:7046
From: knu <ko1@a...>
Date: Wed, 13 Aug 2008 15:26:11 +0900 (JST)
Subject: [ruby-changes:7046] Ruby:r18564 (trunk): * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to
knu 2008-08-13 15:25:53 +0900 (Wed, 13 Aug 2008) New Revision: 18564 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18564 Log: * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to just Enumerator. Modified files: trunk/ChangeLog trunk/enumerator.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18563) +++ ChangeLog (revision 18564) @@ -1,3 +1,8 @@ +Wed Aug 13 15:25:09 2008 Akinori MUSHA <knu@i...> + + * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to + just Enumerator. + Wed Aug 13 15:13:57 2008 Akinori MUSHA <knu@i...> * common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE) Index: enumerator.c =================================================================== --- enumerator.c (revision 18563) +++ enumerator.c (revision 18564) @@ -16,7 +16,7 @@ #include "debug.h" /* - * Document-class: Enumerable::Enumerator + * Document-class: Enumerator * * A class which provides a method `each' to be used as an Enumerable * object. @@ -67,7 +67,7 @@ * obj.to_enum(method = :each, *args) * obj.enum_for(method = :each, *args) * - * Returns Enumerable::Enumerator.new(self, method, *args). + * Returns Enumerator.new(self, method, *args). * * e.g.: * @@ -241,11 +241,11 @@ /* * call-seq: - * Enumerable::Enumerator.new(obj, method = :each, *args) + * Enumerator.new(obj, method = :each, *args) * - * Creates a new Enumerable::Enumerator object, which is to be - * used as an Enumerable object using the given object's given - * method with the given arguments. + * Creates a new Enumerator object, which is to be used as an + * Enumerable object using the given object's given method with the + * given arguments. * * Use of this method is discouraged. Use Kernel#enum_for() instead. */ @@ -480,7 +480,7 @@ rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1); rb_define_method(rb_mEnumerable, "each_cons", enum_each_cons, 1); - rb_cEnumerator = rb_define_class_under(rb_mEnumerable, "Enumerator", rb_cObject); + rb_cEnumerator = rb_define_class("Enumerator", rb_cObject); rb_include_module(rb_cEnumerator, rb_mEnumerable); rb_define_alloc_func(rb_cEnumerator, enumerator_allocate); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/