Class: Dry::System::Plugins::Zeitwerk::CompatInflector Private
- Inherits:
-
Object
- Object
- Dry::System::Plugins::Zeitwerk::CompatInflector
- 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
- #config ⇒ Object readonly private
Instance Method Summary collapse
- #camelize(string, _) ⇒ Object private
-
#initialize(config) ⇒ CompatInflector
constructor
private
A new instance of CompatInflector.
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
#config ⇒ Object (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 |