Ruby/Statement/unless as Modifiers
Материал из Wiki.crossplatform.ru
(Различия между версиями)
ViGOur (Обсуждение | вклад) м (1 версия: Импорт выборки материалов по Ruby) |
Текущая версия на 18:00, 13 сентября 2010
Using unless as Modifiers
temperature = 76 puts "Picnic time!" unless temperature < 65
Using unless as Modifiers with boolean operator
temperature = 76 puts "Picnic time!" unless temperature < 65 || temperature > 85