Fix Numeric#to_r

This commit is contained in:
KOBAYASHI Shuji
2019-05-17 19:53:31 +09:00
parent b6e9fab649
commit eeb95e058a
+1 -1
View File
@@ -69,7 +69,7 @@ class Rational < Numeric
end
end
class << Numeric
class Numeric
def to_r
Rational(self, 1)
end