Class: Pipeable::Steps::Tee

Inherits:
Abstract show all
Defined in:
lib/pipeable/steps/tee.rb

Overview

Messages operation, without any checks, while passing input through as output.

Instance Method Summary collapse

Methods included from Composable

#<<, #>>

Constructor Details

#initialize(operation) ⇒ Tee

Returns a new instance of Tee.



7
8
9
10
# File 'lib/pipeable/steps/tee.rb', line 7

def initialize(operation, *, **)
  super(*, **)
  @operation = operation
end

Instance Method Details

#call(result) ⇒ Object



12
13
14
15
# File 'lib/pipeable/steps/tee.rb', line 12

def call result
  operation.public_send(*base_positionals, **base_keywords)
  result
end