Project

General

Profile

Bug #7248

Shouldn't Enumerator::Lazy.new be private?

Added by marcandre (Marc-Andre Lafortune) about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-10-29 trunk 37380) [x86_64-darwin10.8.0]
Backport:
[ruby-core:48639]

Description

Is there a reason why Enumerator::Lazy.new is not private?

Lazy enumerators should be created with Enumerable#lazy. Moreover, there is no doc, and it can give unexpected results too.


Related issues

Related to Ruby master - Feature #4890: Enumerable#lazyClosedyhara (Yutaka HARA)06/16/2011Actions

Also available in: Atom PDF