Class: String
- Inherits:
- 
      Object
      
        - Object
- String
 
- Defined in:
- lib/vop/util/pluralizer.rb
Instance Method Summary collapse
Instance Method Details
#carefully_pluralize ⇒ Object
| 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 | 
#carefully_singularize ⇒ Object
| 22 23 24 25 26 27 28 | # File 'lib/vop/util/pluralizer.rb', line 22 def carefully_singularize begin self.singularize rescue "#{self[0..-2]}" end end |