Define Rational#quo; fix #5268

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-01-17 22:57:28 +09:00
parent b4817a54f0
commit c7452ff61f
@@ -47,6 +47,8 @@ class Rational < Numeric
end
end
alias quo /
def <=>(rhs)
case rhs
when Integer, Float