class String

Public Instance Methods

pluralize() click to toggle source

A very simple `pluralize` method that works for every object in the Bronto API.

# File lib/core_ext/string.rb, line 4
def pluralize
  self[-1] == "y" ? self[0...-1] + "ies" : self + "s"
end