Class: String
Instance Method Summary collapse
-
#pluralize ⇒ Object
A very simple ‘pluralize` method that works for every object in the Bronto API.
Instance Method Details
#pluralize ⇒ Object
A very simple ‘pluralize` method that works for every object in the Bronto API.
4 5 6 |
# File 'lib/core_ext/string.rb', line 4 def pluralize self[-1] == "y" ? self[0...-1] + "ies" : self + "s" end |