summaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-05 08:40:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-05 08:40:27 +0000
commit5123afe6145b5d967fcce725b3821ad97cf8fd83 (patch)
treed017ac4f0a339440fb13d2473673f254ce98ec38 /class.c
parent28f806a119f0c3acaf4b91b8b652b324282b450d (diff)
downloadruby-5123afe6145b5d967fcce725b3821ad97cf8fd83.tar.gz
ruby-5123afe6145b5d967fcce725b3821ad97cf8fd83.tar.xz
ruby-5123afe6145b5d967fcce725b3821ad97cf8fd83.zip
* lib/observer.rb: a patch from nornagon <nornagon@gmail.com>
merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/class.c b/class.c
index b3cec5506..a950b44de 100644
--- a/class.c
+++ b/class.c
@@ -407,7 +407,8 @@ rb_include_module(klass, module)
break;
}
}
- c = RCLASS(c)->super = include_class_new(module, RCLASS(c)->super);
+ RCLASS(c)->super = include_class_new(module, RCLASS(c)->super);
+ c = RCLASS(c)->super;
changed = 1;
skip:
module = RCLASS(module)->super;