diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -88,7 +88,7 @@ rb_num_coerce_bin(x, y) } static VALUE -num_become(x, y) +num_copy_object(x, y) VALUE x, y; { /* Numerics are immutable values, which should not be copied */ @@ -1650,7 +1650,7 @@ Init_Numeric() rb_include_module(rb_cNumeric, rb_mComparable); rb_define_method(rb_cNumeric, "coerce", num_coerce, 1); - rb_define_method(rb_cNumeric, "become", num_become, 1); + rb_define_method(rb_cNumeric, "copy_object", num_copy_object, 1); rb_define_method(rb_cNumeric, "+@", num_uplus, 0); rb_define_method(rb_cNumeric, "-@", num_uminus, 0); |