Sha256: 573dc4dc9c7af8cb699a1cb067e97ec3162de6f2cb2a2d61e074e66758e59711
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 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) abspath == @version_file ? "VERSION" : super end end end
Version data entries
17 entries across 14 versions & 6 rubygems