Class: TestServer::Server
- Inherits:
-
Object
- Object
- TestServer::Server
- Defined in:
- lib/test_server/server.rb
Instance Method Summary collapse
-
#initialize(command = ServerCommands::Rackup.new) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(command = ServerCommands::Rackup.new) ⇒ Server
Returns a new instance of Server.
11 12 13 |
# File 'lib/test_server/server.rb', line 11 def initialize(command = ServerCommands::Rackup.new) @command = command end |
Instance Method Details
#start ⇒ Object
15 16 17 |
# File 'lib/test_server/server.rb', line 15 def start exec command.to_s end |