module FileMutate::RemoveContent::ClassMethods

Public Instance Methods

remove_content_from(file_name, options = {}) click to toggle source
# File lib/file_mutate/remove_content.rb, line 26
def remove_content_from file_name, options = {}, &block
  replace_content_from file_name, options.merge(:with => ''), &block
end
remove_from(file_name, content=nil) { || ... } click to toggle source
# File lib/file_mutate/remove_content.rb, line 21
def remove_from file_name, content=nil, &block
  content ||= yield
  replace_content_from file_name, :content => content, :with => '', &block
end