Ruby Case Instrukcja wiele warunków
case [condition_1, condition_2, condition_3]
when [true, true, true]
puts "case 1"
when [true, true, false]
puts "case 2"
...
else
puts "Default"
end
patrick204nqh