From: usa@... Date: 2015-10-12T05:40:51+00:00 Subject: [ruby-core:71051] [Ruby trunk - Feature #11583] Add File#unlink Issue #11583 has been updated by Usaku NAKAMURA. Of cource, it's nonsence for me. ---------------------------------------- Feature #11583: Add File#unlink https://bugs.ruby-lang.org/issues/11583#change-54421 * Author: Yuki Kurihara * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I propose new method **File#unlink**. **File#unlink** is same as **Fille.unlink** like this. ~~~ruby class File def unlink File.unlink(path) end end ~~~ It is more objective. And will be able to write duck typeing with **Tempfile#unlink** ~~~diff - Tempfile.open do |f| + Tempfile.create do |f| f.unlink # Not raise an error end ~~~ ---Files-------------------------------- file-unlink.patch (1.44 KB) -- https://bugs.ruby-lang.org/