What does the triple equals operator do in ruby?

The triple equal operator is generally used to determine if an object belongs to a set. For example, an instance of a class belongs to the class, a number in a range belongs to that range, etc.

Fixnum === 1     # true
3..7 === 4     # true
/Blue/ === "Blue Jays"     # true