Sha256: f5432f636d595b0e42c2024c25f735d999229329b24a6e87cc947dd0c0b151a8

Contents?: true

Size: 488 Bytes

Versions: 15

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

require "active_support/inflector"

module Jets
  class Autoloaders
    module Inflector # :nodoc:
      # Concurrent::Map is not needed. This is a private class, and overrides
      # must be defined while the application boots.
      @overrides = {}

      def self.camelize(basename, _abspath)
        @overrides[basename] || basename.camelize
      end

      def self.inflect(overrides)
        @overrides.merge!(overrides)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/autoloaders/inflector.rb
jets-5.0.12 lib/jets/autoloaders/inflector.rb
jets-5.0.11 lib/jets/autoloaders/inflector.rb
jets-5.0.10 lib/jets/autoloaders/inflector.rb
jets-5.0.9 lib/jets/autoloaders/inflector.rb
jets-5.0.8 lib/jets/autoloaders/inflector.rb
jets-5.0.7 lib/jets/autoloaders/inflector.rb
jets-5.0.6 lib/jets/autoloaders/inflector.rb
jets-5.0.5 lib/jets/autoloaders/inflector.rb
jets-5.0.4 lib/jets/autoloaders/inflector.rb
jets-5.0.3 lib/jets/autoloaders/inflector.rb
jets-5.0.2 lib/jets/autoloaders/inflector.rb
jets-5.0.1 lib/jets/autoloaders/inflector.rb
jets-5.0.0 lib/jets/autoloaders/inflector.rb
jets-5.0.0.beta1 lib/jets/autoloaders/inflector.rb