method

upcase_first

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 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.