Class: ImportmapJets::Reloader
- Inherits:
-
Object
- Object
- ImportmapJets::Reloader
- Defined in:
- lib/importmap_jets/reloader.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ Reloader
constructor
A new instance of Reloader.
-
#reload! ⇒ Object
experimental interface method: may change.
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 |