diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-22 04:41:36 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-22 04:41:36 +0000 |
| commit | 76bfb983e89e269640494918e05db45c359abdf6 (patch) | |
| tree | 023bfc556476e071dc0aa7cafbe9d1486fa5184d /eval.c | |
| parent | d32f258895e2ca5ee5b50d70bdaa40d929542ad8 (diff) | |
| download | ruby-76bfb983e89e269640494918e05db45c359abdf6.tar.gz ruby-76bfb983e89e269640494918e05db45c359abdf6.tar.xz ruby-76bfb983e89e269640494918e05db45c359abdf6.zip | |
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1892,7 +1892,7 @@ ev_const_get(cref, id, self) } cbase = cbase->nd_next; } - return rb_const_get(cref->nd_clss, id); + return rb_const_get(NIL_P(cref->nd_clss) ? CLASS_OF(self): cref->nd_clss, id); } static VALUE |
