Class: Corrupt::App
- Inherits:
-
Object
- Object
- Corrupt::App
- Defined in:
- lib/corrupt/app.rb
Overview
This is the main Rack app, which is ran through
run Corrupt::App
Class Method Summary collapse
-
.call(env) ⇒ Object
Returns a proper Rack response in the form of: [status, headers, content].
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 |