class Mutant::Transform::Sequence
Sequence of transformations
def call(input)
-
(Either
-)
Parameters:
-
(
Object
) --
def call(input) current = input steps.each_with_index do |step, index| current = step.call(current).from_right do |error| return failure(error(cause: Index.wrap(error, index), input:)) end end success(current) end