Class: Dry::Transaction::DSL

Inherits:
Module
  • Object
show all
Defined in:
lib/dry/transaction/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(step_adapters:) ⇒ DSL

Returns a new instance of DSL.



6
7
8
9
10
11
12
# File 'lib/dry/transaction/dsl.rb', line 6

def initialize(step_adapters:)
  super()
  @step_adapters = step_adapters

  define_steps
  define_dsl
end

Instance Method Details

#inspectObject



14
15
16
# File 'lib/dry/transaction/dsl.rb', line 14

def inspect
  "Dry::Transaction::DSL(#{@step_adapters.keys.sort.join(", ")})"
end