Module: FileMutate::OverwriteContent

Defined in:
lib/file_mutate/overwrite_content.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#overwrite(content = nil, &block) ⇒ Object



3
4
5
# File 'lib/file_mutate/overwrite_content.rb', line 3

def overwrite content=nil, &block
  File.overwrite self.path, content, &block
end