Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/howcast/ext/string.rb
Instance Method Summary collapse
Instance Method Details
#singularize ⇒ Object
3 4 5 |
# File 'lib/howcast/ext/string.rb', line 3 def singularize self.gsub(/e?s\Z/, '') end |