Issue #2129 has been updated by tadayoshi funaba.
BigDecimal can represent Infinity and NaN.
main@192-20090925> Rational(1,3) * BigDecimal('NaN')
TypeError: BigDecimal can't be coerced into Rational
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2129
----------------------------------------
http://redmine.ruby-lang.org