Actions
Bug #12485
closedKernel.Rational raises TypeError though given denominator returns 1 by to_int
Description
Is it an intentional behavior?
class << (o = Object.new)
def to_int
1
end
end
Rational(1, o) #=> TypeError: not an integer
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0