diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 07:48:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 07:48:50 +0000 |
commit | 8ddbbb33242f413845079b0274c28331cb4aa0f5 (patch) | |
tree | 522b12dada77b09073a58130c99c77d62c895b87 /vm_insnhelper.c | |
parent | 8634544fa74be0995582bc8056763fcfd38a0702 (diff) | |
download | ruby-8ddbbb33242f413845079b0274c28331cb4aa0f5.tar.gz |
Module#prepend
* class.c (rb_prepend_module): prepend module into another module.
* eval.c (rb_mod_prepend): new method Module#prepend. [Feature #1102]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 2e00c0e1de..6544ed89fc 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1425,6 +1425,7 @@ static inline VALUE vm_search_normal_superclass(VALUE klass, VALUE recv) { if (BUILTIN_TYPE(klass) == T_CLASS) { + klass = RCLASS_ORIGIN(klass); return RCLASS_SUPER(klass); } else if (BUILTIN_TYPE(klass) == T_MODULE) { |