Class: Rack::Where
- Inherits:
-
Object
- Object
- Rack::Where
- Defined in:
- lib/rack-math/where.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, where = "where?") ⇒ Where
constructor
A new instance of Where.
Constructor Details
#initialize(app, where = "where?") ⇒ Where
Returns a new instance of Where.
3 4 5 6 |
# File 'lib/rack-math/where.rb', line 3 def initialize(app, where = "where?") @app = app @where = where end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/rack-math/where.rb', line 7 def call(env) status, headers, response = @app.call(env) STDERR.puts @where [status, headers, response] end |