mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
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
This commit is contained in:
parent
e1aa72d441
commit
780e7d0951
10 changed files with 37 additions and 67 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue