method
irregular
v1.2.6 -
Show latest stable
- Class:
Inflector::Inflections
irregular(singular, plural)public
Specifies a new irregular that applies to both pluralization and singularization at the same time. This can only be used for strings, not regular expressions. You simply pass the irregular in singular and plural form.
Examples:
irregular 'octopus', 'octopi' irregular 'person', 'people'