class Shaf::App
Public Class Methods
app()
click to toggle source
# File lib/shaf/app.rb, line 16 def app @app ||= Sinatra.new.tap do |app| app.set :port, Settings.port || 3000 app.use Middleware::RequestId app.use Router end end
call(*args)
click to toggle source
Or `run Shaf::App` (in config.ru)
# File lib/shaf/app.rb, line 12 def call(*args) app.call(*args) end
run!()
click to toggle source
Either call `Shaf::App.run!`
# File lib/shaf/app.rb, line 7 def run! app.run! end