Issue #15529 has been reported by zverok (Victor Shepelev).

----------------------------------------
Misc #15529: Document Enumerator::Lazy
https://bugs.ruby-lang.org/issues/15529

* Author: zverok (Victor Shepelev)
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
In this patch:
* explanation of the class concept, with examples;
* docs for all class methods (most of them just say "Like `Enumerable#<methodname>`, but chains operation to be lazy-evaluated.", but I believe they are useful this way because now have proper call-sequences and link to corresponding Enumerable's explanations)
* simplified example for `::new` to emphasize the main concept
* `Enumerable#lazy` docs are slightly lightened and linked to this class for more in-depth explanations.

For the reference, currently class docs are looking like this: https://ruby-doc.org/core-2.6/Enumerator/Lazy.html

---Files--------------------------------
document-enumerator-lazy.patch (11.4 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>