diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | enumerator.c | 2 | ||||
-rw-r--r-- | test/ruby/test_lazy_enumerator.rb | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Mar 15 17:45:27 2012 Shugo Maeda <shugo@ruby-lang.org> + + * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to + Enumerator::Lazy. + Thu Mar 15 16:37:38 2012 Shugo Maeda <shugo@ruby-lang.org> * 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 |