class ServerSettings::Host

Attributes

host[RW]
port[RW]

Public Class Methods

new(host,port) click to toggle source
# File lib/server_settings/host.rb, line 5
def initialize(host,port)
  @host = host
  @port = port
end
parse(host_line) click to toggle source
# File lib/server_settings/host.rb, line 10
def self.parse(host_line)
  host, port = host_line.split(/:/)
  self.new(host,port)
end