Issue #6413 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to matz (Yukihiro Matsumoto)


----------------------------------------
Feature #6413: Make Dir.entries default to Dir.entries(Dir.pwd)
https://bugs.ruby-lang.org/issues/6413#change-26660

Author: shevegen (markus heiler)
Status: Assigned
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: 


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?


-- 
http://bugs.ruby-lang.org/