Module: FileMutate::Delete::ClassMethods

Defined in:
lib/file_mutate/delete.rb

Instance Method Summary collapse

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