From a70f8f3dab754a5df42c262c40d4a6650d4a99d2 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 6 Feb 2007 07:02:55 +0000 Subject: * variable.c (ivar_i): need to support class local instance variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index be94d4314..504e93e0c 100644 --- a/variable.c +++ b/variable.c @@ -985,7 +985,7 @@ rb_ivar_defined(VALUE obj, ID id) static int ivar_i(ID key, struct global_entry *entry, VALUE ary) { - if (rb_is_instance_id(key)) { + if (rb_is_instance_id(key) || rb_is_instance2_id(key)) { rb_ary_push(ary, ID2SYM(key)); } return ST_CONTINUE; -- cgit