Module: Dry::Mutations::Transactions

Defined in:
lib/dry/mutations/transactions/dsl.rb,
lib/dry/mutations/transactions/wrapper.rb,
lib/dry/mutations/transactions/container.rb,
lib/dry/mutations/transactions/step_adapters.rb,
lib/dry/mutations/transactions/step_adapters/chain.rb,
lib/dry/mutations/transactions/step_adapters/mutate.rb,
lib/dry/mutations/transactions/step_adapters/validate.rb,
lib/dry/mutations/transactions/step_adapters/tranquilo.rb,
lib/dry/mutations/transactions/step_adapters/transform.rb

Overview

:nodoc:

Defined Under Namespace

Modules: DSL Classes: Chain, Mutate, Options, StepAdapters, Tranquilo, Transform, Validate, Wrapper

Constant Summary collapse

Container =

rubocop:disable Style/MultilineTernaryOperator

lambda do |whatever|
  return ->(*input) { input } unless whatever
  whatever.respond_to?(:call) ? whatever : Utils.Constant(whatever).tap do |p|
    fail ArgumentError, "The argument must respond to :call, though #{whatever.inspect} passed." unless p.respond_to? :call
  end
end