Skip to content

Commit

Permalink
all jruby tests except 1 (same as c extension)
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/mixology/trunk@23 62817f43-b31e-4560-8c3d-5e0e681460fe
  • Loading branch information
dan-manges committed Aug 25, 2007
1 parent 5b96617 commit 046b809
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/mixology/MixologyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.ArrayList;

import org.jruby.Ruby;
import org.jruby.RubyArray;
import org.jruby.RubyClass;
import org.jruby.RubyModule;
import org.jruby.IncludedModuleWrapper;
Expand All @@ -29,7 +30,12 @@ public boolean basicLoad(final Ruby runtime) throws IOException {

public synchronized static IRubyObject mixin(IRubyObject recv, RubyModule module, Block block)
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
unmix(recv, module, block);
unmix(recv, module, block);
RubyArray nested_modules = module.included_modules();
for (int i=0; i<nested_modules.size(); i++) {
mixin(recv, (RubyModule)nested_modules.entry(i), block);
}


assert module != null;
RubyModule klass = recv.getSingletonClass();
Expand Down

0 comments on commit 046b809

Please sign in to comment.