class Dry::Transaction::StepFailure
A wrapper for storing together the step that failed and value describing the failure.
Attributes
step[R]
value[R]
Public Class Methods
call(step, value) { || ... }
click to toggle source
@api private
# File lib/dry/transaction/step_failure.rb, line 12 def self.call(step, value) # rubocop:disable Style/CaseEquality if self === value value else yield new(step, value) end # rubocop:enable Style/CaseEquality end
new(step, value)
click to toggle source
# File lib/dry/transaction/step_failure.rb, line 23 def initialize(step, value) @step = step @value = value end