def foo(x) case x when 1 then puts "First Option" when 2 then puts "Second Option" when 3 then puts "Third Option" else puts "Unknown Option" end end