class Importmap::Reloader
def config
def config Rails.application.config end
def import_map_paths
def import_map_paths config.importmap.paths end
def reload!
def reload! import_map_paths.each { |path| Rails.application.importmap.draw(path) } end
def updater
def updater @updater ||= config.file_watcher.new(import_map_paths) { reload! } end