Module: Dry::Transaction::Extra

Defined in:
lib/dry/transaction/extra.rb,
lib/dry/transaction/extra/version.rb,
lib/dry/transaction/extra/steps/tap.rb,
lib/dry/transaction/extra/steps/use.rb,
lib/dry/transaction/extra/steps/maybe.rb,
lib/dry/transaction/extra/steps/merge.rb,
lib/dry/transaction/extra/steps/valid.rb,
lib/dry/transaction/extra/class_callable.rb,
lib/dry/transaction/extra/validation_dsl.rb

Defined Under Namespace

Modules: ClassCallable, Steps, ValidationDSL

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/dry/transaction/extra.rb', line 20

def self.included(klass)
  klass.extend Extra::Steps::Maybe::DSL
  klass.extend Extra::Steps::Use::DSL
  klass.extend Extra::Steps::Valid::DSL

  klass.extend Dry::Core::Extensions

  klass.register_extension :validation do
    klass.extend ValidationDSL
  end

  klass.register_extension :class_callable do
    klass.extend ClassCallable
  end
end