Sha256: d7c5e5ad77c92173a2eb0d4793d5ca2a1be9c26e13a7aeb092aba7c676db11a6
Contents?: true
Size: 543 Bytes
Versions: 15
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module Zeitwerk class GemInflector < Inflector # :nodoc: # @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
15 entries across 10 versions & 2 rubygems