Method: MotionSupport::Inflector#pluralize

Defined in:
motion/inflector/methods.rb

#pluralize(word) ⇒ Object

Returns the plural form of the word in the string.

'post'.pluralize             # => "posts"
'octopus'.pluralize          # => "octopi"
'sheep'.pluralize            # => "sheep"
'words'.pluralize            # => "words"
'CamelOctopus'.pluralize     # => "CamelOctopi"


16
17
18
# File 'motion/inflector/methods.rb', line 16

def pluralize(word)
  apply_inflections(word, inflections.plurals)
end