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


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

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

Instance Method Details

#callObject


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

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

#inspectObject


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

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