Method: String#upcase_first

Defined in:
lib/active_support/core_ext/string/inflections.rb

#upcase_firstObject

Converts just the first character to uppercase.

'what a Lovely Day'.upcase_first # => "What a Lovely Day"
'w'.upcase_first                 # => "W"
''.upcase_first                  # => ""


230
231
232
# File 'lib/active_support/core_ext/string/inflections.rb', line 230

def upcase_first
  ActiveSupport::Inflector.upcase_first(self)
end