method

upcase_first

Importance_1
v6.1.3.1 - Show latest stable - 0 notes - Class: ActiveSupport::Inflector
upcase_first(string) public

Converts just the first character to uppercase.

upcase_first('what a Lovely Day') # => "What a Lovely Day"
upcase_first('w')                 # => "W"
upcase_first('')                  # => ""
Show source
Register or log in to add new notes.