Issue #6798 has been updated by Eregon (Benoit Daloze).


This was solved in #5572. It is fixed on trunk and will be there for 2.0.

You can use

    Pathname(".").to_enum(:find).select { ... }

Would you want it to be backported?
----------------------------------------
Feature #6798: Pathname#find does not return an enumerator
https://bugs.ruby-lang.org/issues/6798#change-28483

Author: mistydemeo (Misty De Meo)
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: 


Pathname#find is an interface to Find.find. However, while Find.find returns an enumerator, Pathname#find does not. This means that, for instance, it is not possible to use Pathname#find with other enumerator methods:

files = Find.find('.').select { ... } - works
files = pn.find.select { ... } - does not work


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