String: first character upcase?

Hi all

Is there a function that makes the first character of a given string
upcase?

first_to_upper “canada”

Thanks for help. :slight_smile:
Joshua

Check out http://www.ruby-doc.org/core/classes/String.html#M001867

Cuong T. wrote:

Check out http://www.ruby-doc.org/core/classes/String.html#M001867

Great, thanks a lot. :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs