module Apogee::FileHelpers
Helpers related to files and file manipulation
Public Class Methods
file_gsub(path, pattern, replacement)
click to toggle source
# File lib/apogee/file_helpers.rb, line 6 def self.file_gsub(path, pattern, replacement) IO.write( path, IO.read(path).gsub(pattern, replacement) ) end