Ruby/Development/Command line
Материал из Wiki.crossplatform.ru
(Различия между версиями)
ViGOur (Обсуждение | вклад) м (1 версия: Импорт выборки материалов по Ruby) |
Текущая версия на 17:55, 13 сентября 2010
Read text from the command line, assigns that text to the predefined variable $_
print "Please enter the temperature: " gets chomp puts "The temperature is #{$_}."