Unverified Commit 6558d51b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4441 from shuujii/fix-Numeric-to_r

Fix `Numeric#to_r`
parents ed0a5f9e eeb95e05
......@@ -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