Project

General

Profile

Actions

Feature #6412

closed

Make Dir.entries default to Dir.entries(Dir.pwd)

Added by shevegen (Robert A. Heiler) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:44942]

Description

Is there a reason why Dir.entries requires one argument?

I think it would be easier and more convenient for the userruby if it would default to the current directory. Like so:

Dir.entries(i = Dir.pwd)

Or is there a reason why this is not done?


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Feature #6413: Make Dir.entries default to Dir.entries(Dir.pwd)Rejectedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0