Sha256: 24146ff4c576753339d2f44c8c3eb5035fcd5f22f7c8b99cbd398a6390d843f4
Contents?: true
Size: 578 Bytes
Versions: 4
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Dry class Gemfile module Services class AssertFileExists include DryService::Config option :path contract do schema do required(:path).filled(:string) end end def result return failure("File with path `#{path}` does NOT exist") unless ::File.exist?(path) success end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems