Class: Beez::Rails::Reloader

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Reloader.



4
5
6
# File 'lib/beez/rails.rb', line 4

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

Instance Method Details

#call(&block) ⇒ Object



8
9
10
# File 'lib/beez/rails.rb', line 8

def call(&block)
  @app.reloader.wrap(&block)
end

#inspectObject



12
13
14
# File 'lib/beez/rails.rb', line 12

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