Method: Hanami::Config#inflector

Defined in:
lib/hanami/config.rb

#inflectorDry::Inflector

Sets the app’s inflector.

This expects a ‘Dry::Inflector` (or compatible) inflector instance.

To configure custom inflection rules without having to assign a whole inflector, see #inflections.

Returns:

  • (Dry::Inflector)

See Also:

Since:

  • 2.0.0

[View source]

45
# File 'lib/hanami/config.rb', line 45

setting :inflector, default: Dry::Inflector.new