Sha256: 576e8a5677c743a1231866e29838c33acabe8ba1a92a51386a28077595ec0336
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
module Lorraine class NetworkConnection < Lorraine::Connection attr_writer :hostname def hostname @hostname || "localhost" end attr_writer :port def port @port || "3010" end def write_message(msg) Lorraine::Client.send_message(msg, self.hostname, self.port) puts "Writing network message: #{msg}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lorraine-0.0.7 | lib/lorraine/network_connection.rb |
lorraine-0.0.6 | lib/lorraine/network_connection.rb |