Class: Mutant::Transform::Hash::Key Private
- Inherits:
-
Mutant::Transform
- Object
- Mutant::Transform
- Mutant::Transform::Hash::Key
- 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.
Key specific transformation
Instance Method Summary collapse
-
#apply(input) ⇒ Either<Error, Object>
private
Apply transformation to input.
-
#slug ⇒ String
private
Rendering slug.
Instance Method Details
#apply(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
338 339 340 341 342 |
# File 'lib/mutant/transform.rb', line 338 def apply(input) transform.apply(input).lmap do |error| error(cause: error, input: input) end 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.
Rendering slug
328 329 330 |
# File 'lib/mutant/transform.rb', line 328 def slug '[%<key>s]' % { key: value.inspect } end |