Ruby's case statement uses ===
I've not found this stated clearly enough elsewhere so I'm doing so myself.
Ruby's case statement calls the === method on the argument to each of the when statements
So, this example:
case my_number
when 6883
:prime
end
Will execute 6883 === my_number
This is all fine and dandy, because the === method on a Fixnum instance does what you'd expect in this scenario.