Method: Path#unlink

Defined in:
lib/path/file.rb

Removes a file using File.unlink. This is incompatible with Pathname#unlink, which can also remove directories. Use #rmdir or #rm_r for directories.



99
100
101
# File 'lib/path/file.rb', line 99

def unlink
  File.unlink @path
end