[ruby-cvs:61351] mrkn:r54190 (trunk): * bignum.c (Bignum#<=>): remove it because they are unified with

mrkn at ruby-lang.org mrkn at ruby-lang.org
Sat Mar 19 18:28:12 JST 2016


mrkn	2016-03-19 18:28:12 +0900 (Sat, 19 Mar 2016)

  New Revision: 54190

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54190

  Log:
    * bignum.c (Bignum#<=>): remove it because they are unified with
      Integer#<=>.
    
    * numeric.c (Integer#<=>, Fixnum#<=>): move <=> method from Fixnum to
      Integer.
    
    * numeric.c (int_cmp): add this method for Integer#<=>.
    
    * test/-ext-/integer/test_my_integer.rb (test_my_integer_cmp): add a
      test to examine Integer#<=> for unknown subclasses.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/numeric.c
    trunk/test/-ext-/integer/test_my_integer.rb


More information about the ruby-cvs mailing list