method

gsub_file

gsub_file(relative_destination, regexp, *args, &block)
protected

Run a regular expression replacement on a file

Example

  gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'