Class: Morpher::Transform

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium
Defined in:
lib/morpher/transform.rb

Overview

Composable transform declaration and execution

Defined Under Namespace

Classes: Array, Block, Boolean, Error, Exception, Hash, Index, Named, Primitive, Sequence, Success

Instance Method Summary collapse

Instance Method Details

#callEither<Error, Object>

Apply transformation to input

Parameters:

  • input (Object)

Returns:



21
# File 'lib/morpher/transform.rb', line 21

abstract_method :call

#slugString

Default slug

Returns:

  • (String)


12
13
14
# File 'lib/morpher/transform.rb', line 12

def slug
  self.class.to_s
end