Commit eeb95e05 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix `Numeric#to_r`

parent b6e9fab6
......@@ -69,7 +69,7 @@ class Rational < Numeric
end
end
class << Numeric
class Numeric
def to_r
Rational(self, 1)
end
......
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