Sha256: b99c0268c7deee51883a75304385761d8a662f8e967be55c8f99c86376869627

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

require "dry/monads/either"
require "dry/matcher"
require "dry/matcher/either_matcher"

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-transaction-0.10.2 lib/dry/transaction/operation.rb
dry-transaction-0.10.1 lib/dry/transaction/operation.rb
dry-transaction-0.10.0 lib/dry/transaction/operation.rb