Module: FileMutate::Delete
- Defined in:
- lib/file_mutate/delete.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #delete! ⇒ Object (also: #delete_file!)
- #mutate(marker, place, &block) ⇒ Object
Instance Method Details
#delete! ⇒ Object Also known as: delete_file!
18 19 20 |
# File 'lib/file_mutate/delete.rb', line 18 def delete! File.delete(self.path) end |
#mutate(marker, place, &block) ⇒ Object
23 24 25 |
# File 'lib/file_mutate/delete.rb', line 23 def mutate marker, place, &block File.mutate_file self.path, marker, place, &block end |