Class: Nephos::Server
- Inherits:
-
Object
- Object
- Nephos::Server
- Defined in:
- lib/nephos-server/server/main.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
Class Method Summary collapse
-
.start(port) ⇒ Object
start the Rack server on a instance of Nephos::Server.
Instance Method Summary collapse
-
#initialize(port) ⇒ Server
constructor
A new instance of Server.
-
#start ⇒ Object
start the Rack server.
Constructor Details
#initialize(port) ⇒ Server
Returns a new instance of Server.
13 14 15 |
# File 'lib/nephos-server/server/main.rb', line 13 def initialize port @port = Integer(port) end |
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
10 11 12 |
# File 'lib/nephos-server/server/main.rb', line 10 def port @port end |
Class Method Details
Instance Method Details
#start ⇒ Object
start the Rack server
18 19 20 |
# File 'lib/nephos-server/server/main.rb', line 18 def start Rack::Server.start :app => SERVER, :Port => @port end |