Sha256: b1a04c351a1bfb1f062323af10648807a39bbe388a535f09153862b743e3e65e

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

require "zeitwerk"

module TerraspaceVcsGitlab
  class Autoloader
    class Inflector < Zeitwerk::Inflector
      def camelize(basename, _abspath)
        map = { 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.log! if ENV["TERRASPACE_VCS_GITLAB_AUTOLOAD_LOG"]
        loader.setup
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace_vcs_gitlab-0.1.0 lib/terraspace_vcs_gitlab/autoloader.rb