Class: ConvenientService::Examples::Dry::Gemfile::Services::AssertFileNotEmpty
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Dry::Gemfile::Services::AssertFileNotEmpty
- Includes:
- DryService::Config
- Defined in:
- lib/convenient_service/examples/dry/gemfile/services/assert_file_not_empty.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
19 20 21 22 23 |
# File 'lib/convenient_service/examples/dry/gemfile/services/assert_file_not_empty.rb', line 19 def result return failure("File with path `#{path}` is empty") if ::File.zero?(path) success end |