Sha256: 7744e83727543dcc52724759cc925f186c0e29d28b242be40fe84a75460619c4

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module Micro
  module Cases
    module Safe
      class Flow < Cases::Flow
        private def __next_use_case_result(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

6 entries across 6 versions & 1 rubygems

Version Path
u-case-3.0.0.rc9 lib/micro/cases/safe/flow.rb
u-case-3.0.0.rc8 lib/micro/cases/safe/flow.rb
u-case-3.0.0.rc7 lib/micro/cases/safe/flow.rb
u-case-3.0.0.rc6 lib/micro/cases/safe/flow.rb
u-case-3.0.0.rc5 lib/micro/cases/safe/flow.rb
u-case-3.0.0.rc4 lib/micro/cases/safe/flow.rb