Class: Gearup::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/gearup/server.rb

Defined Under Namespace

Classes: GzRewrite

Instance Method Summary collapse

Constructor Details

#initialize(env, port) ⇒ Server

Returns a new instance of Server.



5
6
7
8
# File 'lib/gearup/server.rb', line 5

def initialize env, port
  @env = env
  @port = port
end

Instance Method Details

#startObject



10
11
12
# File 'lib/gearup/server.rb', line 10

def start
  Rack::Handler::WEBrick.run(app, :Port => @port)
end