Project

General

Profile

« Previous | Next » 

Revision 81f65a9e

Added by Kenta Murata over 9 years ago

  • 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e