Class: Dry::Mutations::Transactions::Tranquilo

Inherits:
StepAdapters::Move show all
Defined in:
lib/dry/mutations/transactions/step_adapters/tranquilo.rb

Overview

dry-rb.org/gems/dry-transaction/custom-step-adapters/ step adapters must provide a single ‘#call(step, *args, input)` method,

which should return the step’s result wrapped in an `Either` object.

Instance Method Summary collapse

Methods inherited from StepAdapters::Move

adapters, inherited

Instance Method Details

#call(step, *args, input) ⇒ Object

:nodoc:



8
9
10
11
# File 'lib/dry/mutations/transactions/step_adapters/tranquilo.rb', line 8

def call(step, *args, input)
  # TODO: FIXME: PENDING: when block passing is merged into dry-validation
  step.operation.(input, *args)
end