Class: Rack::Refresher
- Inherits:
-
Object
- Object
- Rack::Refresher
- Defined in:
- lib/rack/refresher.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) {|@config| ... } ⇒ Refresher
constructor
A new instance of Refresher.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
24 25 26 27 |
# File 'lib/rack/refresher.rb', line 24 def call(env) status, headers, body = @app.call(env) Response.new(inject(body), status, headers) end |