I am replacing a chain of if/elsif with case in Ruby. I see examples where when is followed by a number, a range like 0...341, a class like Integer and even a regular expression, all in the same style. But my attempt case value.class when Integer never matches, even for integers.
What comparison does when actually perform, is there fall-through as in C, and why does the class check fail?




