Class: Jets::Gems::Autoloader

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

Defined Under Namespace

Classes: Inflector

Class Method Summary collapse

Class Method Details

.setupObject



15
16
17
18
19
20
21
22
# File 'lib/jets/gems/autoloader.rb', line 15

def setup
  loader = Zeitwerk::Loader.new
  loader.inflector = Inflector.new
  lib = File.expand_path("../..", __dir__)
  loader.push_dir(lib) # lib
  loader.ignore("#{lib}/serverlessgems.rb")
  loader.setup
end