Class: HTTPong::Rails::Reloader
- Inherits:
-
Object
- Object
- HTTPong::Rails::Reloader
- Defined in:
- lib/httpong/rails/reloader.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Reloader
constructor
A new instance of Reloader.
Constructor Details
#initialize(app) ⇒ Reloader
Returns a new instance of Reloader.
4 5 6 |
# File 'lib/httpong/rails/reloader.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/httpong/rails/reloader.rb', line 8 def call(env) HTTPong.schemes.each do |scheme| scheme.reload end @app.call(env) end |