Module: Dry::Transaction::Operation

Defined in:
lib/dry/transaction/operation.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



8
9
10
11
12
13
# File 'lib/dry/transaction/operation.rb', line 8

def self.included(klass)
  klass.class_eval do
    include Dry::Monads[:result]
    include Dry::Matcher.for(:call, with: Dry::Matcher::ResultMatcher)
  end
end