Module: Saorin::Server
- Includes:
- Registerable
- Defined in:
- lib/saorin/server.rb,
lib/saorin/server/base.rb,
lib/saorin/server/rack.rb
Defined Under Namespace
Modules: Base
Classes: Rack
Class Method Summary
collapse
included
Class Method Details
.new(handler, options = {}) ⇒ Object
10
11
12
13
14
|
# File 'lib/saorin/server.rb', line 10
def new(handler, options = {})
adapter = options[:adapter] || :rack
adapter_class = guess adapter
adapter_class.new handler, options
end
|
.start(handler, options = {}, &block) ⇒ Object
16
17
18
|
# File 'lib/saorin/server.rb', line 16
def start(handler, options = {}, &block)
new(handler, options).start(&block)
end
|