Sha256: 8da624bc4438cd3c6de398c42596aba2f047e4982d9ab253366be7dbc2b88f9a
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
require "zeitwerk" module CliDocs 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-docs.rb") loader.setup end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-docs-0.1.0 | lib/cli_docs/autoloader.rb |