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

#call(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:



56
57
58
# File 'lib/mutant/transform.rb', line 56

def call(input)
  transform.call(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)


63
# File 'lib/mutant/transform.rb', line 63

def slug = name