Method: Extlib::Inflection.singular_word

Defined in:
lib/extlib/inflection.rb

.singular_word(singular, plural) ⇒ Object

Define a singularization exception.

Parameters

singular<String>

singular form of the word

plural<String>

plural form of the word



159
160
161
162
# File 'lib/extlib/inflection.rb', line 159

def singular_word(singular, plural)
  @singular_of[plural] = singular
  @singular_of[plural.capitalize] = singular.capitalize
end