Module: Masyo

Extended by:
Masyo
Included in:
Masyo
Defined in:
lib/masyo.rb,
lib/masyo/proxy.rb,
lib/masyo/version.rb

Defined Under Namespace

Classes: Proxy

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#loggerObject



18
19
20
# File 'lib/masyo.rb', line 18

def logger
  @logger ||= Logger.new STDOUT
end

#run(opts = {}) ⇒ Object



13
14
15
16
# File 'lib/masyo.rb', line 13

def run(opts = {})
  Thread.abort_on_exception = true
  Proxy.run(opts[:listen_port], opts[:server_host], opts[:server_port])
end