Philip Ross wrote:
> The recent changes to implement Rational as a built-in
C class have
> resulted in the documented Rational.new! method
becoming private. Is
> this an intentional change, or will new! be made public
again?
>
> The reason I ask is that my TZInfo library makes use of
Rational.new!
> for performance reasons. Calling Kernel#Rational is too
expensive
> because of call to Rational.reduce, so I pre-reduce the
required
> Rationals and initialize them with Rational.new!.
>
> Thanks,
>
> Phil
>
Is this Ruby 1.8, 1.9 or both?
|