method
upcase_first
v8.1.1 -
Show latest stable
- Class:
String
upcase_first()public
Converts the first character to uppercase.
'what a Lovely Day'.upcase_first # => "What a Lovely Day" 'w'.upcase_first # => "W" ''.upcase_first # => ""