Class: AwsMfaSecure::Autoloader

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

Defined Under Namespace

Classes: Inflector

Class Method Summary collapse

Class Method Details

.setupObject



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

def setup
  loader = Zeitwerk::Loader.new
  loader.inflector = Inflector.new
  lib = File.dirname(__dir__) # lib
  loader.push_dir(lib)
  loader.ignore("#{lib}/aws-mfa-secure.rb")
  loader.do_not_eager_load("#{lib}/aws_mfa_secure/ext/aws.rb")
  loader.setup
end