line = STDIN.gets
case line
when 1
puts "1"
when 2
puts "2"
else
puts "none"
end

1と2を入力してもnoneが表示されます
どこか間違えてるのかアドバイスお願いします