Class: Rack::ChromeFrame
- Inherits:
-
Object
- Object
- Rack::ChromeFrame
- Defined in:
- lib/rack/chrome_frame.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ChromeFrame
constructor
A new instance of ChromeFrame.
Constructor Details
#initialize(app) ⇒ ChromeFrame
Returns a new instance of ChromeFrame.
5 6 7 |
# File 'lib/rack/chrome_frame.rb', line 5 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 |
# File 'lib/rack/chrome_frame.rb', line 9 def call(env) status, headers, response = @app.call(env) headers["X-UA-Compatible"] ||= "chrome=1" [status, headers, response] end |