Ruby/Development/Command line

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

Версия от 17:55, 13 сентября 2010; ViGOur (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Read text from the command line, assigns that text to the predefined variable $_

print "Please enter the temperature: "
gets
chomp
puts "The temperature is #{$_}."