From 28827e61d153e39ad3fe1e6fecbf27c09140fe75 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 6 Aug 2012 15:31:13 +0000 Subject: method in instance_eval * class.c (rb_special_singleton_class_of): utility function. * vm_eval.c (eval_under): special deal for class variable scope with instance_eval. * vm_eval.c (rb_obj_instance_eval, rb_obj_instance_exec): allow method definition in instance_eval of special constants. [ruby-core:28324] [Bug #2788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36647 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 8396b0aad9..57b485d74f 100644 --- a/internal.h +++ b/internal.h @@ -60,6 +60,7 @@ VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj); 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); void Init_class_hierarchy(void); /* compile.c */ -- cgit v1.2.3