Class: SMPTool::CLI::Autoloader

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

Overview

Gem’s autoloader.

Class Method Summary collapse

Class Method Details

.setupObject



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

def setup
  loader = Zeitwerk::Loader.new
  loader.push_dir(Pathname(__dir__).join("../../")) # lib
  loader.inflector.inflect(
    "smp_tool" => "SMPTool",
    "cli" => "CLI"
  )
  loader.setup
end