Sha256: 7c2d861e5f79f4c05b08c2454d38f280fb659ff7be884d6be7c92e55fe52d294
Contents?: true
Size: 533 Bytes
Versions: 24
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true module Zeitwerk class GemInflector < Inflector # @param root_file [String] def initialize(root_file) namespace = File.basename(root_file, ".rb") lib_dir = File.dirname(root_file) @version_file = File.join(lib_dir, namespace, "version.rb") end # @param basename [String] # @param abspath [String] # @return [String] def camelize(basename, abspath) (basename == "version" && abspath == @version_file) ? "VERSION" : super end end end
Version data entries
24 entries across 24 versions & 1 rubygems