* class.c (rb_include_module): don't clear the method cache if the
included module has no method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
572b8b3749
commit
a35c3cf341
@ -1,3 +1,8 @@
|
|||||||
|
Sun Aug 1 09:44:25 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* class.c (rb_include_module): don't clear the method cache if the
|
||||||
|
included module has no method.
|
||||||
|
|
||||||
Sun Aug 1 09:21:32 2010 Tanaka Akira <akr@fsij.org>
|
Sun Aug 1 09:21:32 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/pathname/pathname.c (path_sub): Pathname#sub translated
|
* ext/pathname/pathname.c (path_sub): Pathname#sub translated
|
||||||
|
1
class.c
1
class.c
@ -659,6 +659,7 @@ rb_include_module(VALUE klass, VALUE module)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
|
c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
|
||||||
|
if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries)
|
||||||
changed = 1;
|
changed = 1;
|
||||||
skip:
|
skip:
|
||||||
module = RCLASS_SUPER(module);
|
module = RCLASS_SUPER(module);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user