Class: Rabbitek::Rails::RailsReloader
- Inherits:
-
Object
- Object
- Rabbitek::Rails::RailsReloader
- Defined in:
- lib/rabbitek/rails.rb
Overview
Implementation of reloader for Rails
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ RailsReloader
constructor
A new instance of RailsReloader.
- #inspect ⇒ Object
Constructor Details
#initialize ⇒ RailsReloader
Returns a new instance of RailsReloader.
30 31 32 |
# File 'lib/rabbitek/rails.rb', line 30 def initialize @app = ::Rails.application end |
Instance Method Details
#call ⇒ Object
34 35 36 |
# File 'lib/rabbitek/rails.rb', line 34 def call @app.reloader.wrap { yield } end |
#inspect ⇒ Object
38 39 40 |
# File 'lib/rabbitek/rails.rb', line 38 def inspect "#<Rabbitek::Rails::RailsReloader @app=#{@app.class.name}>" end |