Class: Dry::System::Plugins::Zeitwerk::CompatInflector Private

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/system/plugins/zeitwerk/compat_inflector.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ CompatInflector

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CompatInflector.



11
12
13
# File 'lib/dry/system/plugins/zeitwerk/compat_inflector.rb', line 11

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/dry/system/plugins/zeitwerk/compat_inflector.rb', line 9

def config
  @config
end

Instance Method Details

#camelize(string, _) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/dry/system/plugins/zeitwerk/compat_inflector.rb', line 15

def camelize(string, _)
  config.inflector.camelize(string)
end