Project

General

Profile

This project is closed and read-only.

Actions

Backport #6798

closed

Pathname#find does not return an enumerator

Backport #6798: Pathname#find does not return an enumerator

Added by mistydemeo (Misty De Meo) about 14 years ago. Updated about 14 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:46791]

Description

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


Related issues 1 (0 open — 1 closed)

Related to Ruby - Feature #5572: ブロックなしPathname#find呼び出しでEnumeratorを返すClosedakr (Akira Tanaka)Actions
Actions

Also available in: PDF Atom