Define `Rational#quo`; fix #5268

parent b4817a54
...@@ -47,6 +47,8 @@ class Rational < Numeric ...@@ -47,6 +47,8 @@ class Rational < Numeric
end end
end end
alias quo /
def <=>(rhs) def <=>(rhs)
case rhs case rhs
when Integer, Float when Integer, Float
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment