Class: Armrest::Autoloader

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

Defined Under Namespace

Classes: Inflector

Class Method Summary collapse

Class Method Details

.setupObject



17
18
19
20
21
22
# File 'lib/armrest/autoloader.rb', line 17

def setup
  loader = Zeitwerk::Loader.new
  loader.inflector = Inflector.new
  loader.push_dir(File.dirname(__dir__)) # lib
  loader.setup
end