Method: FakeFS::Pathname#unlink
- Defined in:
- lib/fakefs/pathname.rb
#unlink ⇒ Object Also known as: delete
Removes a file or directory, using File.unlink or Dir.unlink as necessary.
1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/fakefs/pathname.rb', line 1011 def unlink if File.directory? @path Dir.unlink @path else File.unlink @path end end |