method

upcase_first

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - 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                  # => ""

See ActiveSupport::Inflector.upcase_first.

Show source
Register or log in to add new notes.