ruby-changes:22991
From: shugo <ko1@a...>
Date: Thu, 15 Mar 2012 17:47:22 +0900 (JST)
Subject: [ruby-changes:22991] shugo:r35040 (trunk): * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to
shugo 2012-03-15 17:47:09 +0900 (Thu, 15 Mar 2012) New Revision: 35040 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35040 Log: * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to Enumerator::Lazy. Modified files: trunk/ChangeLog trunk/enumerator.c trunk/test/ruby/test_lazy_enumerator.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35039) +++ ChangeLog (revision 35040) @@ -1,3 +1,8 @@ +Thu Mar 15 17:45:27 2012 Shugo Maeda <shugo@r...> + + * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to + Enumerator::Lazy. + Thu Mar 15 16:37:38 2012 Shugo Maeda <shugo@r...> * enumerator.c (enumerator_lazy): added cycle to the documentation. Index: enumerator.c =================================================================== --- enumerator.c (revision 35039) +++ enumerator.c (revision 35040) @@ -1624,7 +1624,7 @@ rb_define_method(rb_cEnumerator, "inspect", enumerator_inspect, 0); /* Enumerable::Lazy */ - rb_cLazy = rb_define_class_under(rb_mEnumerable, "Lazy", rb_cEnumerator); + rb_cLazy = rb_define_class_under(rb_cEnumerator, "Lazy", rb_cEnumerator); rb_define_method(rb_mEnumerable, "lazy", enumerable_lazy, 0); rb_define_method(rb_cLazy, "initialize", lazy_initialize, -1); rb_define_method(rb_cLazy, "map", lazy_map, 0); Index: test/ruby/test_lazy_enumerator.rb =================================================================== --- test/ruby/test_lazy_enumerator.rb (revision 35039) +++ test/ruby/test_lazy_enumerator.rb (revision 35040) @@ -19,7 +19,7 @@ def test_initialize assert_equal([1, 2, 3], [1, 2, 3].lazy.to_a) - assert_equal([1, 2, 3], Enumerable::Lazy.new([1, 2, 3]).to_a) + assert_equal([1, 2, 3], Enumerator::Lazy.new([1, 2, 3]).to_a) end def test_each_args -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/