[Source]
# File lib/backports/1.9.2/complex.rb, line 2 2: def to_r 3: raise "Can't convert #{self} into Rational" unless imag.eql?(0) 4: real.to_r 5: end
[Validate]