Module: Apogee::FileHelpers
- Defined in:
- lib/apogee/file_helpers.rb
Overview
Helpers related to files and file manipulation
Class Method Summary collapse
Class Method Details
.file_gsub(path, pattern, replacement) ⇒ Object
6 7 8 9 10 11 |
# 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 |