Sha256: 23e0da1e0fd571ff8c1346bd4d6e7b2eb2ceb8464084625b39045cbc5b522f3e
Contents?: true
Size: 538 Bytes
Versions: 13
Compression:
Stored size: 538 Bytes
Contents
require "zeitwerk" module TerraspaceBundler 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__)}/terraspace-bundler.rb") loader.setup end end end end
Version data entries
13 entries across 13 versions & 1 rubygems