Actions
Feature #11583
openAdd File#unlink
Status:
Open
Assignee:
-
Target version:
-
Description
I propose new method File#unlink.
File#unlink is same as Fille.unlink like this.
class File
def unlink
File.unlink(path)
end
end
It is more objective.
And will be able to write duck typeing with Tempfile#unlink
- Tempfile.open do |f|
+ Tempfile.create do |f|
f.unlink # Not raise an error
end
Files
Actions
Like0
Like0Like0Like0