Class: Waves::Servers::WEBrick

Inherits:
Base show all
Defined in:
lib/waves/servers/webrick.rb

Instance Attribute Summary

Attributes inherited from Base

#application, #host, #port

Instance Method Summary collapse

Methods inherited from Base

#initialize, #start

Constructor Details

This class inherits a constructor from Waves::Servers::Base

Instance Method Details

#callObject



5
6
7
# File 'lib/waves/servers/webrick.rb', line 5

def call
  Rack::Handler::WEBrick.run( application, :Host => host, :Port => port ) { | server | yield server if block_given? }
end

#stopObject



9
# File 'lib/waves/servers/webrick.rb', line 9

def stop ; @server.stop ; super ; end