module Saorin::Server

Public Class Methods

new(handler, options = {}) click to toggle source
# 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) click to toggle source
# File lib/saorin/server.rb, line 16
def start(handler, options = {}, &block)
  new(handler, options).start(&block)
end