Class: Rabbitek::Rails::RailsReloader

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbitek/rails.rb

Overview

Implementation of reloader for Rails

Instance Method Summary collapse

Constructor Details

#initializeRailsReloader

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

#callObject



34
35
36
# File 'lib/rabbitek/rails.rb', line 34

def call
  @app.reloader.wrap { yield }
end

#inspectObject



38
39
40
# File 'lib/rabbitek/rails.rb', line 38

def inspect
  "#<Rabbitek::Rails::RailsReloader @app=#{@app.class.name}>"
end