class Morpher::Transform::Named

Wrapper adding a name to a transformation

Public Instance Methods

call(input) click to toggle source

Apply transformation to input

@return [Either<Error, Object>]

# File lib/morpher/transform.rb, line 97
def call(input)
  transform.call(input).lmap(&method(:wrap_error))
end
slug() click to toggle source

Named slug

@return [String]

# File lib/morpher/transform.rb, line 104
def slug
  name
end