From: Tadayoshi Funaba Date: 2008-03-31T20:52:16+09:00 Subject: [ruby-dev:34189] Re: [ruby-cvs:23106] Re: Ruby:r15866 (trunk): * numeric.c (num_quo): should convert its operand to Rational. 間違って送ったので、再送。 > > Log: > > * numeric.c (num_quo): should convert its operand to Rational. > > > > * rational.c (string_to_r_strict): should raise TypeError. > > > > * bignum.c (Init_Bignum): should not redefine Bignum#div. > > Numeric#div will do. [ruby-dev:34066] > > これですが、 > > Rational('') # TypeError: invalid value for Rational: "" > Float('') # ArgumentError: invalid value for Float(): "" > Integer('') # ArgumentError: invalid value for Integer: "" > > となり、他と違ってしまいます。 > > Rational(aString) で、ArgumentError、new レベルで、TypeError で良けれ > ばそのように直しますが。 > > その他の修正も num_quo で Rational をつかうなど豪快ですね。