Class: Dry::Mutations::Transactions::Options

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/dry/mutations/transactions/wrapper.rb

Constant Summary collapse

OPTIONS =
{
  failure: ->(value, λ) do
    result = λ.()
    Utils.Falsey?(value) ? result : Right(nil)
  end
}.freeze

Instance Method Summary collapse

Methods inherited from Wrapper

#wrap

Constructor Details

#initializeOptions

Returns a new instance of Options.



27
28
# File 'lib/dry/mutations/transactions/wrapper.rb', line 27

def initialize
end