diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-06 07:02:55 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-06 07:02:55 +0000 |
commit | 979d021a8fa86ae02135397286c52b85989754c8 (patch) | |
tree | fab3a74409b77c9e8ddf72de991eef0d35c00c61 /variable.c | |
parent | c27ef66dd7dc00fa22dce416dd2080f5da501a47 (diff) | |
download | ruby-979d021a8fa86ae02135397286c52b85989754c8.tar.gz |
* variable.c (ivar_i): need to support class local instance
variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index be94d4314e..504e93e0cc 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; |