Sha256: e43b28c0c577fdff29abcbefea3c15bbf12f72ee4bf666f0a1751ba720093a9c
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
module Mihari # # Base class for services # class Service include Dry::Monads[:result, :try] def call(*args, **kwargs) raise NotImplementedError, "You must implement #{self.class}##{__method__}" end def result Try[StandardError] { call }.to_result end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mihari-5.7.0 | lib/mihari/service.rb |