Class: ConvenientService::Examples::Rails::Gemfile::Services::AssertFileNotEmpty
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Rails::Gemfile::Services::AssertFileNotEmpty
- Includes:
- RailsService::Config
- Defined in:
- lib/convenient_service/examples/rails/gemfile/services/assert_file_not_empty.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
15 16 17 18 19 |
# File 'lib/convenient_service/examples/rails/gemfile/services/assert_file_not_empty.rb', line 15 def result return failure("File with path `#{path}` is empty") if ::File.zero?(path) success end |