Class: Retl::ForkHandler
- Defined in:
- lib/retl/handlers/fork_handler.rb
Instance Attribute Summary
Attributes inherited from Handler
Instance Method Summary collapse
- #call(data, context) ⇒ Object
-
#initialize(fork) ⇒ ForkHandler
constructor
A new instance of ForkHandler.
Methods inherited from Handler
Constructor Details
#initialize(fork) ⇒ ForkHandler
Returns a new instance of ForkHandler.
5 6 7 8 |
# File 'lib/retl/handlers/fork_handler.rb', line 5 def initialize(fork) super() @fork = fork end |
Instance Method Details
#call(data, context) ⇒ Object
10 11 12 13 |
# File 'lib/retl/handlers/fork_handler.rb', line 10 def call(data, context) context._events.trigger(:fork_data, fork_name: @fork, data: data.dup) push_out data end |