Class: OFlow::Actors::Relay
- Inherits:
-
OFlow::Actor
- Object
- OFlow::Actor
- OFlow::Actors::Relay
- Defined in:
- lib/oflow/actors/relay.rb
Overview
Relays a shipment to another location. This is useful for creating aliases for a Task.
Instance Attribute Summary
Attributes inherited from OFlow::Actor
Instance Method Summary collapse
-
#initialize(task, options) ⇒ Relay
constructor
A new instance of Relay.
- #perform(op, box) ⇒ Object
- #with_own_thread ⇒ Object
Methods inherited from OFlow::Actor
#busy?, #inputs, #options, #outputs, #set_option
Constructor Details
#initialize(task, options) ⇒ Relay
Returns a new instance of Relay.
9 10 11 |
# File 'lib/oflow/actors/relay.rb', line 9 def initialize(task, ) super end |
Instance Method Details
#perform(op, box) ⇒ Object
13 14 15 |
# File 'lib/oflow/actors/relay.rb', line 13 def perform(op, box) task.ship(op, box) end |
#with_own_thread ⇒ Object
17 18 19 |
# File 'lib/oflow/actors/relay.rb', line 17 def with_own_thread() false end |