Class: Mutant::Transform::Named Private
- Inherits:
-
Mutant::Transform
- Object
- Mutant::Transform
- Mutant::Transform::Named
- 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.
Wrapper adding a name to a transformation
Instance Method Summary collapse
-
#call(input) ⇒ Either<Error, Object>
private
Apply transformation to input.
-
#slug ⇒ String
private
Named slug.
Instance Method Details
#call(input) ⇒ Either<Error, 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
64 65 66 |
# File 'lib/mutant/transform.rb', line 64 def call(input) transform.call(input).lmap(&method(:wrap_error)) end |
#slug ⇒ String
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.
Named slug
71 72 73 |
# File 'lib/mutant/transform.rb', line 71 def slug name end |