instance method
pluralize
Ruby on Rails 3.1.12
Since v3.0.20Signature
pluralize()
Returns the plural form of the word in the string.
"post".pluralize # => "posts" "octopus".pluralize # => "octopi" "sheep".pluralize # => "sheep" "words".pluralize # => "words" "the blue mailman".pluralize # => "the blue mailmen" "CamelOctopus".pluralize # => "CamelOctopi"
Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 19
def pluralize
ActiveSupport::Inflector.pluralize(self)
end
Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 19
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in String