method
upcase_first
v7.2.3 -
Show latest stable
- Class:
ActiveSupport::Inflector
upcase_first(string)public
Converts the first character in the string to uppercase.
upcase_first('what a Lovely Day') # => "What a Lovely Day" upcase_first('w') # => "W" upcase_first('') # => ""