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

Instance Method Details

#resultObject



31
32
33
# File 'lib/convenient_service/examples/dry/v1/gemfile/services/strip_comments.rb', line 31

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