Module: FileMutate::Delete::ClassMethods
- Defined in:
- lib/file_mutate/delete.rb
Instance Method Summary collapse
- #delete!(name) ⇒ Object (also: #delete_file!)
Instance Method Details
#delete!(name) ⇒ Object Also known as: delete_file!
11 12 13 14 |
# File 'lib/file_mutate/delete.rb', line 11 def delete! name return nil if !File.exist?(name) File.delete name end |