From ad6f06aed8bf9b753622809441c4db0d523cd41f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 Dec 2012 02:37:47 +0000 Subject: object.c: singleton class clone * object.c (rb_obj_clone): attach clone to its singleton class during cloning singleton class so that singleton_method_added will be called on it. based on the patch by shiba (satoshi shiba)[Bug #5283] in [ruby-dev:44477]. [Bug #5283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 13c36f7a2c..c8317a51e8 100644 --- a/internal.h +++ b/internal.h @@ -63,6 +63,7 @@ VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj); VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj); int rb_obj_basic_to_s_p(VALUE); VALUE rb_special_singleton_class(VALUE); +VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach); void Init_class_hierarchy(void); /* compile.c */ -- cgit v1.2.3