class Farcall::LocalConnection::Connection
Attributes
other[RW]
Public Class Methods
new(other_loop = nil)
click to toggle source
Calls superclass method
Farcall::Transport::new
# File lib/farcall/transport.rb, line 144 def initialize other_loop = nil super() if other_loop other_loop.other = self @other = other_loop end end
Public Instance Methods
send_data(hash)
click to toggle source
# File lib/farcall/transport.rb, line 152 def send_data hash @other.on_data_received.call hash end