Project

General

Profile

Feature #6413

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

Added by shevegen (Robert A. Heiler) almost 9 years ago. Updated about 3 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:44943]

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

Is duplicate of Ruby master - Feature #6412: Make Dir.entries default to Dir.entries(Dir.pwd)Rejected05/08/2012Actions

Also available in: Atom PDF