Actions
Feature #5572
closedブロックなしPathname#find呼び出しでEnumeratorを返す
Description
辻本です。
Pathname#findをブロックなしで呼び出すとno block givenエラーとなりますが、
Find.findと同様にこの場合はEnumeratorを返すようにすることを提案します。
パッチを添付します。
Files
Updated by ktsj (Kazuki Tsujimoto) about 13 years ago
- Category changed from lib to ext
Updated by akr (Akira Tanaka) about 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
Like0
Like0Like0