Class: Morpher::Transform::Success

Inherits:
Morpher::Transform show all
Defined in:
lib/morpher/transform.rb

Overview

Transform sucessfully

Instance Method Summary collapse

Methods inherited from Morpher::Transform

#array, #maybe, #seq, #slug, #to_proc

Instance Method Details

#call(input) ⇒ Either<Error, Object>

Apply transformation to input

Parameters:

  • (Object)

Returns:



503
504
505
# File 'lib/morpher/transform.rb', line 503

def call(input)
  success(block.call(input))
end