Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/vop/util/pluralizer.rb

Instance Method Summary collapse

Instance Method Details

#carefully_pluralizeObject


14
15
16
17
18
19
20
# File 'lib/vop/util/pluralizer.rb', line 14

def carefully_pluralize
  begin
    self.pluralize(2)
  rescue
    "#{self}s"
  end
end