From ff1f6107f98261774739a6824fa80b1eba7b58ef Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 15 Mar 2012 08:47:09 +0000 Subject: [PATCH] * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to Enumerator::Lazy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ enumerator.c | 2 +- test/ruby/test_lazy_enumerator.rb | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13e1688d44..e34ebaca78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 15 17:45:27 2012 Shugo Maeda + + * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to + Enumerator::Lazy. + Thu Mar 15 16:37:38 2012 Shugo Maeda * enumerator.c (enumerator_lazy): added cycle to the documentation. diff --git a/enumerator.c b/enumerator.c index 9d0eeaa5f0..5f0cecb23a 100644 --- a/enumerator.c +++ b/enumerator.c @@ -1624,7 +1624,7 @@ InitVM_Enumerator(void) 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); diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb index 1c0096f88c..7450875fc0 100644 --- a/test/ruby/test_lazy_enumerator.rb +++ b/test/ruby/test_lazy_enumerator.rb @@ -19,7 +19,7 @@ class TestLazyEnumerator < Test::Unit::TestCase 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