Actions
Feature #12194
closedFile.dirname optional parameter
Feature #12194:
File.dirname optional parameter
Status:
Closed
Assignee:
-
Target version:
-
Description
As talked at the last developers' meeting, I propose an addition of an optional parameter to File.dirname
.
Often I see the code, like
File.dirname(File.dirname(path)) # or
File.expand_path("../..", path)
which are not concise.
This proposal can make them as:
File.dirname(path, 2)
Actions