Class: Mutant::Transform::Array Private
- Inherits:
-
Mutant::Transform
- Object
- Mutant::Transform
- Mutant::Transform::Array
- Defined in:
- lib/mutant/transform.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Transform an array via mapping it over transform
Constant Summary collapse
- MESSAGE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'Failed to coerce array at index: %<index>d'
- PRIMITIVE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Primitive.new(primitive: ::Array)
Instance Method Summary collapse
-
#call(input) ⇒ Either<Error, Array<Object>>
private
Apply transformation to input.
Methods inherited from Mutant::Transform
Instance Method Details
#call(input) ⇒ Either<Error, Array<Object>>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Apply transformation to input
243 244 245 246 247 248 |
# File 'lib/mutant/transform.rb', line 243 def call(input) PRIMITIVE .call(input) .lmap(&method(:lift_error)) .bind(&method(:run)) end |