I\'ve stumbled into a weird behaviour in Ruby where the real? method on numeric classes incorrectly returns true on NaN and Infinity.
real?
NaN
Infinity