Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/howcast/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#singularizeObject



3
4
5
# File 'lib/howcast/ext/string.rb', line 3

def singularize
  self.gsub(/e?s\Z/, '')
end