class Jails::Application

Public Instance Methods

call(env) click to toggle source

Instantiate a Request object, instantiate Routing object and call dispatch method, ultimately return response.

# File lib/jails.rb, line 10
def call(env)
  request = Rack::Request.new(env)
  puts("\n\nStarted #{request.request_method} \"#{request.path}\" for #{request.ip} #{Time.now}")
  response = Routing.new(request).dispatch
  return response
end