Sha256: 820ea82b80af0186fc73d316363533c5296d435f97c4181b0c606461f7fc4df2

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

require 'dry/monads/result'
require 'dry/matcher'
require 'dry/matcher/result_matcher'

module Dry
  module Transaction
    module Operation
      def self.included(klass)
        klass.class_eval do
          include Dry::Monads::Result::Mixin
          include Dry::Matcher.for(:call, with: Dry::Matcher::ResultMatcher)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-transaction-0.14.0 lib/dry/transaction/operation.rb
dry-transaction-0.13.3 lib/dry/transaction/operation.rb
dry-transaction-0.13.2 lib/dry/transaction/operation.rb
dry-transaction-0.13.1 lib/dry/transaction/operation.rb