Class: ConvenientService::Examples::Dry::V1::Gemfile::Services::StripComments

Inherits:
Object
  • Object
show all
Includes:
DryService::Config
Defined in:
lib/convenient_service/examples/dry/v1/gemfile/services/strip_comments.rb

Instance Method Summary collapse

Methods included from Config

included

Instance Method Details

#resultObject



36
37
38
# File 'lib/convenient_service/examples/dry/v1/gemfile/services/strip_comments.rb', line 36

def result
  success(data: {content_without_comments: file_without_comments.read})
end