Class: ImportmapJets::Autoloader

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

Defined Under Namespace

Classes: Inflector

Class Method Summary collapse

Class Method Details

.setupObject



13
14
15
16
17
18
19
20
# File 'lib/importmap_jets/autoloader.rb', line 13

def setup
  loader = Zeitwerk::Loader.new
  loader.inflector = Inflector.new
  lib = File.dirname(__dir__)
  loader.push_dir(lib) # lib
  loader.ignore("#{lib}/importmap-jets.rb")
  loader.setup
end