From 6e52d10fe63fa99b6bfb12e5abb232c1165c804f Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 19 May 2003 05:41:08 +0000 Subject: * object.c (init_copy): rename copy_object as initialize_copy, since it works as copy constructor. * eval.c (rb_add_method): initialize_copy should always be private, like initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index d8041a54a6..322a1a1f71 100644 --- a/numeric.c +++ b/numeric.c @@ -158,7 +158,7 @@ num_coerce_relop(x, y) } static VALUE -num_copy_object(x, y) +num_init_copy(x, y) VALUE x, y; { /* Numerics are immutable values, which should not be copied */ @@ -1767,7 +1767,7 @@ Init_Numeric() rb_cNumeric = rb_define_class("Numeric", rb_cObject); rb_include_module(rb_cNumeric, rb_mComparable); - rb_define_method(rb_cNumeric, "copy_object", num_copy_object, 1); + rb_define_method(rb_cNumeric, "initialize_copy", num_init_copy, 1); rb_define_method(rb_cNumeric, "coerce", num_coerce, 1); rb_define_method(rb_cNumeric, "+@", num_uplus, 0); -- cgit v1.2.3