method
capitalize
v1_8_7_72 -
Show latest stable
- Class:
String
capitalize()public
Returns a copy of str with the first character converted to uppercase and the remainder to lowercase.
"hello".capitalize #=> "Hello" "HELLO".capitalize #=> "Hello" "123ABC".capitalize #=> "123abc"