Sha256: e84311d333204ac476f71432dad9203f234b11f73fd88540a22840b88f6bf2f2
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
class Servel::Servel def initialize(root) @root = root end def start Rack::Handler::Puma.run(build_app) end def build_app root = @root Rack::Builder.new do use(Servel::Middleware, root: root) run ->(env) do [404, {}, []] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
servel-0.4.0 | lib/servel/servel.rb |
servel-0.3.0 | lib/servel/servel.rb |