Project

General

Profile

Actions

Feature #5572

closed

ブロックなしPathname#find呼び出しでEnumeratorを返す

Added by ktsj (Kazuki Tsujimoto) about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
[ruby-dev:44797]

Description

辻本です。

Pathname#findをブロックなしで呼び出すとno block givenエラーとなりますが、
Find.findと同様にこの場合はEnumeratorを返すようにすることを提案します。

パッチを添付します。


Files


Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #6798: Pathname#find does not return an enumeratorRejected07/27/2012Actions

Updated by ktsj (Kazuki Tsujimoto) about 13 years ago

  • Category changed from lib to ext
Actions #2

Updated by akr (Akira Tanaka) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33792.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/pathname.rb (Pathname#find): return an enumerator if
    no block is given.

  • test/pathname/test_pathname.rb: add tests for above.

[ruby-dev:44797] [Feature #5572]

Actions

Also available in: Atom PDF

Like0
Like0Like0