Class: ConvenientService::Examples::Rails::Gemfile::Services::ReplaceFileContent

Inherits:
Object
  • Object
show all
Includes:
RailsService::Config
Defined in:
lib/convenient_service/examples/rails/gemfile/services/replace_file_content.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



21
22
23
24
25
# File 'lib/convenient_service/examples/rails/gemfile/services/replace_file_content.rb', line 21

def result
  ::File.write(path, content)

  success
end