Class: Beez::Rails::Reloader
- Inherits:
-
Object
- Object
- Beez::Rails::Reloader
- Defined in:
- lib/beez/rails.rb
Instance Method Summary collapse
- #call(&block) ⇒ 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.
4 5 6 |
# File 'lib/beez/rails.rb', line 4 def initialize(app = ::Rails.application) @app = app end |
Instance Method Details
#call(&block) ⇒ Object
8 9 10 |
# File 'lib/beez/rails.rb', line 8 def call(&block) @app.reloader.wrap(&block) end |
#inspect ⇒ Object
12 13 14 |
# File 'lib/beez/rails.rb', line 12 def inspect "#<Beez::Rails::Reloader @app=#{@app.class.name}>" end |