Class: Gearup::Server
- Inherits:
-
Object
- Object
- Gearup::Server
- Defined in:
- lib/gearup/server.rb
Defined Under Namespace
Classes: GzRewrite
Instance Method Summary collapse
-
#initialize(env, port) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
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
#start ⇒ Object
10 11 12 |
# File 'lib/gearup/server.rb', line 10 def start Rack::Handler::WEBrick.run(app, :Port => @port) end |