Feature #6413

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

Added by Robert A. Heiler almost 2 years ago. Updated over 1 year ago.

[ruby-core:44943]
Status:Assigned
Priority:Low
Assignee:Yukihiro Matsumoto
Category:-
Target version:next minor

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

Duplicates ruby-trunk - Feature #6412: Make Dir.entries default to Dir.entries(Dir.pwd) Rejected 05/08/2012

History

#1 Updated by Yusuke Endoh almost 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yukihiro Matsumoto

#2 Updated by Yusuke Endoh over 1 year ago

  • Target version set to next minor

Also available in: Atom PDF