Class: Dry::Transaction::StepAdapters::Raw Private
- Inherits:
-
Object
- Object
- Dry::Transaction::StepAdapters::Raw
- Defined in:
- lib/dry/transaction/step_adapters/raw.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#call(step, *args, input) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 |
# File 'lib/dry/transaction/step_adapters/raw.rb', line 8 def call(step, *args, input) result = step.operation.call(*args, input) unless result.is_a?(Kleisli::Either) raise ArgumentError, "step +#{step.step_name}+ must return an Either object" end result end |