Class: Rack::SockJS::RenderErrors
- Inherits:
-
Object
- Object
- Rack::SockJS::RenderErrors
- Defined in:
- lib/rack/sockjs.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RenderErrors
constructor
A new instance of RenderErrors.
Constructor Details
#initialize(app) ⇒ RenderErrors
Returns a new instance of RenderErrors.
110 111 112 |
# File 'lib/rack/sockjs.rb', line 110 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
114 115 116 117 118 119 120 121 122 |
# File 'lib/rack/sockjs.rb', line 114 def call(env) return @app.call(env) rescue => err if err.respond_to? :to_html err.to_html else raise end end |