module ActiveSupport::Inflector
def inflections(locale = :en)
Experimental RBS support (using type sampling data from the type_fusion
project).
def inflections: (?Symbol locale) -> untyped
This signature was generated using 1 sample from 1 application.
inflect.uncountable 'rails'
ActiveSupport::Inflector.inflections(:en) do |inflect|
Only rules for English are provided.
languages can be specified. If not specified, defaults to :en.
additional inflector rules. If passed an optional locale, rules for other
Yields a singleton instance of Inflector::Inflections so you can specify
def inflections(locale = :en) if block_given? yield Inflections.instance(locale) else Inflections.instance_or_fallback(locale) end end