3 ms·
Pretty cool! In the comment for the code, # 'what a Lovely Day'.upcase_first # => "What a Lovely Day" How does it know that "a" should not be capitalized? D
by jsnk 10y ago
Pretty cool!
In the comment for the code,
# 'what a Lovely Day'.upcase_first # => "What a Lovely Day"
How does it know that "a" should not be capitalized? Does it work with words like "of", "the", for" etc?