summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 07:02:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 07:02:55 +0000
commita70f8f3dab754a5df42c262c40d4a6650d4a99d2 (patch)
treefab3a74409b77c9e8ddf72de991eef0d35c00c61 /variable.c
parenta026063aeff59d8d8714d46f336197cd5f3d1c9c (diff)
downloadruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.tar.gz
ruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.tar.xz
ruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.zip
* 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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
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;