Class: Subserver::Rails::Reloader

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

Instance Method Summary collapse

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

#callObject



40
41
42
43
44
# File 'lib/subserver/rails.rb', line 40

def call
  @app.reloader.wrap do
    yield
  end
end

#inspectObject



46
47
48
# File 'lib/subserver/rails.rb', line 46

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