Class: Rail::Server

Inherits:
Rack::Server
  • Object
show all
Defined in:
lib/rail/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = nil) ⇒ Server

Returns a new instance of Server.



3
4
5
6
7
8
9
10
11
# File 'lib/rail/server.rb', line 3

def initialize(options = nil)
  options = {
    Port: 3000,
    environment: Rail.env,
    config: 'config.ru'
  }.merge(options || {})

  super(options)
end