ChillerDragon
6c005497d4
Thus closed #5 By deciding to support server as well. This is rebranding from teeworlds-client to teeworlds_network And thus also including a bunch of file renames
15 lines
180 B
Ruby
15 lines
180 B
Ruby
# frozen_string_literal: true
|
|
|
|
class NetAddr
|
|
attr_accessor :ip, :port
|
|
|
|
def initialize(ip, port)
|
|
@ip = ip
|
|
@port = port
|
|
end
|
|
|
|
def to_s
|
|
"#{@ip}:#{@port}"
|
|
end
|
|
end
|