Class: Corrupt::App

Inherits:
Object
  • Object
show all
Defined in:
lib/corrupt/app.rb

Overview

This is the main Rack app, which is ran through

run Corrupt::App

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object

Returns a proper Rack response in the form of:

[status, headers, content]


8
9
10
# File 'lib/corrupt/app.rb', line 8

def self.call(env)
  Router.dispatch(env['PATH_INFO'])
end