From 81f65a9e054ddcdf2d1a8507e516672dd8c7324e Mon Sep 17 00:00:00 2001 From: mrkn Date: Sat, 19 Mar 2016 09:28:12 +0000 Subject: * 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 --- bignum.c | 1 - 1 file changed, 1 deletion(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 2c241d1c56..450385ce3e 100644 --- a/bignum.c +++ b/bignum.c @@ -7011,7 +7011,6 @@ Init_Bignum(void) rb_define_method(rb_cBignum, ">>", rb_big_rshift, 1); rb_define_method(rb_cBignum, "[]", rb_big_aref, 1); - rb_define_method(rb_cBignum, "<=>", rb_big_cmp, 1); rb_define_method(rb_cBignum, "==", rb_big_eq, 1); rb_define_method(rb_cBignum, ">", big_gt, 1); rb_define_method(rb_cBignum, ">=", big_ge, 1); -- cgit v1.2.3