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.
11 12 13 |
# File 'lib/nephos-server/server/main.rb', line 11 def initialize port @port = Integer(port) end |
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/nephos-server/server/main.rb', line 8 def port @port end |
Class Method Details
Instance Method Details
#start ⇒ Object
start the Rack server
16 17 18 |
# File 'lib/nephos-server/server/main.rb', line 16 def start Rack::Server.start :app => SERVER, :Port => @port end |