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
56 57 58 |
# File 'lib/mutant/transform.rb', line 56 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
63 |
# File 'lib/mutant/transform.rb', line 63 def slug = name |