class RFlow::ForwardToInputPort
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 134 def initialize(target_port) super(RFlow::Configuration::NullConnectionConfiguration.new) @receiver = target_port.component @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 142 def send_message(message) @receiver.process_message(@target_port, nil, self, message) end