From 780e7d0951aefa64264e21d15d8deefeded6465f Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 15 Aug 2012 01:09:10 +0000 Subject: Revert r36699 and r36700. [Feature #6130] Revert "Kernel#inspect: improve consistency and do not call #to_s." Revert "update PP with recent Kernel#inspect change. Patch by Yusuke Endoh." r36699 cause test-all failure on test/drb/test_drb.rb and test/drb/test_drbssl.rb. Run test-all before commit. Moreover its ChangeLog formst is wrong: see CommitterHowto https://bugs.ruby-lang.org/projects/ruby/wiki/CommitterHowto#ChangeLog git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 5ac5449238..73626e1c05 100644 --- a/numeric.c +++ b/numeric.c @@ -3660,7 +3660,6 @@ Init_Numeric(void) rb_cFixnum = rb_define_class("Fixnum", rb_cInteger); rb_define_method(rb_cFixnum, "to_s", fix_to_s, -1); - rb_define_alias(rb_cFixnum, "inspect", "to_s"); rb_define_method(rb_cFixnum, "-@", fix_uminus, 0); rb_define_method(rb_cFixnum, "+", fix_plus, 1); @@ -3721,7 +3720,6 @@ Init_Numeric(void) rb_define_const(rb_cFloat, "NAN", DBL2NUM(NAN)); rb_define_method(rb_cFloat, "to_s", flo_to_s, 0); - rb_define_alias(rb_cFloat, "inspect", "to_s"); rb_define_method(rb_cFloat, "coerce", flo_coerce, 1); rb_define_method(rb_cFloat, "-@", flo_uminus, 0); rb_define_method(rb_cFloat, "+", flo_plus, 1); -- cgit v1.2.3