Method: String#decapitalize
- Defined in:
- lib/jinx/helpers/inflector.rb
#decapitalize ⇒ String
Returns this String with the first letter decapitalized and other letters preserved.
33 34 35 |
# File 'lib/jinx/helpers/inflector.rb', line 33 def decapitalize sub(/(?:^)(.)/) { $1.downcase } end |