Class | File |
In: |
lib/sugar-high/file.rb
|
Parent: | Object |
insert_into ‘my_file.txt’, :after => ‘Blip’, :content => ‘Hello insert_into ‘my_file.txt’, ‘Hello’, :after => ‘Blip’ insert_into ‘my_file.txt’, :after => ‘Blip’ do
'Hello'
end
replaces content found at replacement_expr with content resulting from yielding block File.replace_content_from ‘myfile.txt’, where => /HelloWorld/, with => ‘GoodBye‘