Ruby/String/downcase
Материал из Wiki.crossplatform.ru
(Различия между версиями)
Версия 17:10, 26 мая 2010
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