Copy Edit

This commit is contained in:
James Strocel 2012-04-25 09:01:59 -07:00
parent 4179141a01
commit 7f04235e52
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ Replaces text inside a file.
<ruby>
gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
</ruby
</ruby>
Regular Expressions can be used to make this method more precise. You can also use append_file and prepend_file in the same way to place code at the beginning and end of a file respectively.