Method: Inflections.pluralize
- Defined in:
- lib/build/ExtendedString.rb
.pluralize(word, locale = :en) ⇒ Object
Returns the plural form of the word in the string.
If passed an optional locale parameter, the word will be pluralized using rules defined for that language. By default, this parameter is set to :en.
210 211 212 |
# File 'lib/build/ExtendedString.rb', line 210 def pluralize(word, locale = :en) apply_inflections(word, inflections(locale).plurals) end |