method
upcase_first
v7.1.3.2 -
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 # => ""