Class: Subserver::Rails::Reloader
- Inherits:
-
Object
- Object
- Subserver::Rails::Reloader
- Defined in:
- lib/subserver/rails.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(app = ::Rails.application) ⇒ Reloader
constructor
A new instance of Reloader.
- #inspect ⇒ Object
Constructor Details
#initialize(app = ::Rails.application) ⇒ Reloader
Returns a new instance of Reloader.
36 37 38 |
# File 'lib/subserver/rails.rb', line 36 def initialize(app = ::Rails.application) @app = app end |
Instance Method Details
#call ⇒ Object
40 41 42 43 44 |
# File 'lib/subserver/rails.rb', line 40 def call @app.reloader.wrap do yield end end |
#inspect ⇒ Object
46 47 48 |
# File 'lib/subserver/rails.rb', line 46 def inspect "#<Subserver::Rails::Reloader @app=#{@app.class.name}>" end |