class RFlow::ForwardToOutputPort

Manually shuffle messages in-process from one output port to another output port. Can be used to get a Facade pattern effect - to have one component contain other components within it, shuttling messages in and out without making the internal component visible to the larger RFlow network.

Public Class Methods

new(target_port) click to toggle source
Calls superclass method RFlow::Connection::new
# File lib/rflow/connection.rb, line 117
def initialize(target_port)
  super(RFlow::Configuration::NullConnectionConfiguration.new)
  @target_port = target_port
end

Public Instance Methods

send_message(message) click to toggle source

Override of {send_message} which forwards the message to the target port. @return [void]

# File lib/rflow/connection.rb, line 124
def send_message(message)
  @target_port.send_message(message)
end