Class: Low::Rack::Default
- Inherits:
-
Object
- Object
- Low::Rack::Default
- Defined in:
- lib/low/rack/default.rb
Constant Summary collapse
- LOGGER_KEY =
'rack.logger'
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Default
constructor
A new instance of Default.
Constructor Details
#initialize(app) ⇒ Default
Returns a new instance of Default.
7 8 9 |
# File 'lib/low/rack/default.rb', line 7 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/low/rack/default.rb', line 11 def call(env) env['low.show_exceptions'] = ['development', 'test'].include? ENV['RACK_ENV'] @app.call(env) end |