Method: Sinew::Main#initialize
- Defined in:
- lib/sinew/main.rb
#initialize(options) ⇒ Main
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/sinew/main.rb', line 11 def initialize() super() # init = RuntimeOptions.new @request_tm = Time.at(0) @request_count = 0 if [:proxy] addr, port = [:proxy].split(':') .[:http_proxyaddr] = addr .[:http_proxyport] = port || 80 end end |