Sha256: 5b48198540e0180875ce496edb74fdeee48a0266b2862db8c67374a15a2f767e
Contents?: true
Size: 498 Bytes
Versions: 15
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult class Middleware < Core::MethodChainMiddleware def next(...) original_result = chain.next(...) return original_result if original_result.class.include?(Entities::Result::Concern) raise Errors::ServiceReturnValueNotKindOfResult.new(service: entity, result: original_result) end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems