Class: Dry::Transaction::DSL
- Inherits:
-
Module
- Object
- Module
- Dry::Transaction::DSL
- Defined in:
- lib/dry/transaction/dsl.rb
Instance Method Summary collapse
-
#initialize(step_adapters:) ⇒ DSL
constructor
A new instance of DSL.
- #inspect ⇒ Object
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
#inspect ⇒ Object
14 15 16 |
# File 'lib/dry/transaction/dsl.rb', line 14 def inspect "Dry::Transaction::DSL(#{@step_adapters.keys.sort.join(", ")})" end |