Copy Edit
This commit is contained in:
parent
4179141a01
commit
7f04235e52
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue