Sha256: 8a396101bed1a6168348c9355b1fb6433f24cbc4c01a604fcac877cd691693a5

Contents?: true

Size: 483 Bytes

Versions: 16

Compression:

Stored size: 483 Bytes

Contents

require "zeitwerk"

module KubesGoogle
  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
        lib = File.expand_path("../", __dir__)
        loader.push_dir(lib)
        loader.setup
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kubes_google-0.3.11 lib/kubes_google/autoloader.rb
kubes_google-0.3.10 lib/kubes_google/autoloader.rb
kubes_google-0.3.9 lib/kubes_google/autoloader.rb
kubes_google-0.3.8 lib/kubes_google/autoloader.rb
kubes_google-0.3.7 lib/kubes_google/autoloader.rb
kubes_google-0.3.6 lib/kubes_google/autoloader.rb
kubes_google-0.3.5 lib/kubes_google/autoloader.rb
kubes_google-0.3.4 lib/kubes_google/autoloader.rb
kubes_google-0.3.3 lib/kubes_google/autoloader.rb
kubes_google-0.3.2 lib/kubes_google/autoloader.rb
kubes_google-0.3.1 lib/kubes_google/autoloader.rb
kubes_google-0.3.0 lib/kubes_google/autoloader.rb
kubes_google-0.2.0 lib/kubes_google/autoloader.rb
kubes_google-0.1.2 lib/kubes_google/autoloader.rb
kubes_google-0.1.1 lib/kubes_google/autoloader.rb
kubes_google-0.1.0 lib/kubes_google/autoloader.rb