class Morpher::Transform::Hash::Key

Key specific transformation

Public Instance Methods

call(input) click to toggle source

Apply transformation to input

@param [Object]

@return [Either<Error, Object>]

# File lib/morpher/transform.rb, line 351
def call(input)
  transform.call(input).lmap do |error|
    error(cause: error, input: input)
  end
end
slug() click to toggle source

Rendering slug

@return [String]

# File lib/morpher/transform.rb, line 341
def slug
  '[%<key>s]' % { key: value.inspect }
end