Class: ImportmapJets::Reloader

Inherits:
Object
  • Object
show all
Defined in:
lib/importmap_jets/reloader.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Reloader

Returns a new instance of Reloader.



3
4
5
# File 'lib/importmap_jets/reloader.rb', line 3

def initialize(app)
  @app = app
end

Instance Method Details

#reload!Object

experimental interface method: may change



8
9
10
# File 'lib/importmap_jets/reloader.rb', line 8

def reload!
  @app.config.importmap.paths.each { |path| @app.importmap.draw(path) }
end