Sha256: 5451fc3e985dc6aca4cce91c7e07027b55bdfbd67c8aa2bdf747ba63a62c2c9f
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 Bytes
Contents
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 # @param 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
Version data entries
4 entries across 4 versions & 1 rubygems