Sha256: c1799cac288fcc8f590f3f1e0f4ec5631c62186fade9ccf9a40743d554542b0d
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true module Micro module Cases module Safe class Flow < Cases::Flow private def __case_use_case(use_case, result, input) instance = use_case.__new__(result, input) instance.__call__ rescue => exception raise exception if Case::Error.by_wrong_usage?(exception) result.__set__(false, exception, :exception, instance) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
u-case-4.0.0 | lib/micro/cases/safe/flow.rb |
u-case-3.1.0 | lib/micro/cases/safe/flow.rb |
u-case-3.0.0 | lib/micro/cases/safe/flow.rb |