Class File
In: lib/sugar-high/file.rb
Parent: Object

Methods

Classes and Modules

Module File::Insert
Module File::Mutate

Public Class methods

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‘

Public Instance methods

[Validate]