Class: Substation::Processor::Executor

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/substation/processor/executor.rb

Overview

Supports executing new Substation::Processor handler instances

Constant Summary collapse

NULL =
new(decompose, compose)

Instance Method Summary collapse

Instance Method Details

#compose(input, output) ⇒ 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.

Compose input and output

Parameters:

  • input (Object)

    the input to compose from

  • output (Object)

    the output to compose with

Returns:

  • (Object)

40
41
42
# File 'lib/substation/processor/executor.rb', line 40

def compose(input, output)
  composer.call(input, output)
end

#decompose(input) ⇒ 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.

Decompose input

Parameters:

  • input (Object)

    the input to decompose

Returns:

  • (Object)

25
26
27
# File 'lib/substation/processor/executor.rb', line 25

def decompose(input)
  decomposer.call(input)
end