str.capitalize â new_str
Instance Public methods
Returns a copy of str with the first character converted to uppercase and the remainder to lowercase. Note: case conversion is effective only in ASCII region.
1 2 3 | "hello" .capitalize #=> "Hello" "HELLO" .capitalize #=> "Hello" "123ABC" .capitalize #=> "123abc" |
Please login to continue.