Class: Morpher::Transform::Hash::Key
- Inherits:
-
Morpher::Transform
- Object
- Morpher::Transform
- Morpher::Transform::Hash::Key
- Defined in:
- lib/morpher/transform.rb
Overview
Key specific transformation
Instance Method Summary collapse
-
#call(input) ⇒ Either<Error, Object>
Apply transformation to input.
-
#slug ⇒ String
Rendering slug.
Methods inherited from Morpher::Transform
Instance Method Details
#call(input) ⇒ Either<Error, Object>
Apply transformation to input
344 345 346 347 348 |
# File 'lib/morpher/transform.rb', line 344 def call(input) transform.call(input).lmap do |error| error(cause: error, input: input) end end |
#slug ⇒ String
Rendering slug
334 335 336 |
# File 'lib/morpher/transform.rb', line 334 def slug '[%<key>s]' % { key: value.inspect } end |