Ruby/String/downcase

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

Adding a call to capitalize onto the statement.

puts "YOU KNOW IT".downcase.capitalize



Call downcase function from string class

"Test".downcase



concatenate a string to the result

taf = "That"s ".downcase * 3 + "all folks!" 
taf.capitalize