Class: Mutant::Transform::Named Private

Inherits:
Mutant::Transform show all
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

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

Returns:



64
65
66
# File 'lib/mutant/transform.rb', line 64

def apply(input)
  transformer.apply(input).lmap(&method(:wrap_error))
end

#slugString

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

Returns:

  • (String)


71
72
73
# File 'lib/mutant/transform.rb', line 71

def slug
  name
end