Class: Sidekiq::Rails::Reloader

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

Instance Method Summary collapse

Constructor Details

#initialize(app = ::Rails.application) ⇒ Reloader

Returns a new instance of Reloader.


36
37
38
# File 'lib/sidekiq/rails.rb', line 36

def initialize(app = ::Rails.application)
  @app = app
end

Instance Method Details

#callObject


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

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

#inspectObject


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

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