Method: ExtlibCopy::Inflection.singular_word

Defined in:
lib/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



188
189
190
191
# File 'lib/inflection.rb', line 188

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