require_relative 'basic_errors' require_relative 'responder' require_relative '../routing/execute' module Nephos class Server SERVER = lambda {|env| return Route.execute(env)} attr_accessor :port # @params: port [Integer] port to listen def initialize port @port = Integer(port) end # start the Rack server def start Rack::Server.start :app => SERVER, :Port => @port end # start the Rack server on a instance of Nephos::Server def self.start port Server.new(port).start end end end