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 (1 open0 closed)

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

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

Sorry, this is the wrong one.

This is not a "bug", I wanted to mark it as feature, but it
seems I clicked too quickly. Can someone remove this here?
(I don't know how to remove it)

This should be under "feature" instead.

Actions #2

Updated by marcandre (Marc-Andre Lafortune) almost 12 years ago

  • Tracker changed from Bug to Feature

Updated by mame (Yusuke Endoh) almost 12 years ago

  • Status changed from Open to Rejected

Do not reply to this ticket. Go to #6413.

--
Yusuke Endoh

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0