Sha256: 924a12cf1343ae2158efa07f4f8896170918e776349b29b4fba2587db4b2f566
Contents?: true
Size: 526 Bytes
Versions: 3
Compression:
Stored size: 526 Bytes
Contents
require "zeitwerk" module CliTemplate class Autoloader class Inflector < Zeitwerk::Inflector def camelize(basename, _abspath) map = { cli: "CLI", version: "VERSION" } map[basename.to_sym] || super end end class << self def setup loader = Zeitwerk::Loader.new loader.inflector = Inflector.new loader.push_dir(File.dirname(__dir__)) # lib loader.ignore("#{File.dirname(__dir__)}/cli-template.rb") loader.setup end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cli-template-4.0.2 | lib/cli_template/autoloader.rb |
cli-template-4.0.1 | lib/cli_template/autoloader.rb |
cli-template-4.0.0 | lib/cli_template/autoloader.rb |