Class: Pipeable::Steps::Tee
- Defined in:
- lib/pipeable/steps/tee.rb
Overview
Messages operation, without any checks, while passing input through as output.
Instance Method Summary collapse
- #call(result) ⇒ Object
-
#initialize(operation) ⇒ Tee
constructor
A new instance of Tee.
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 |