Module: Kentaa::Api::Util
- Defined in:
- lib/kentaa/api/util.rb
Class Method Summary collapse
Class Method Details
.pluralize(string) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/kentaa/api/util.rb', line 8 def pluralize(string) if string[-1] == 'y' "#{string.chop}ies" else "#{string}s" end end |