Skip to content
Permalink
Browse files
[Truffle] Fix iterator class for the included modules iterators.
  • Loading branch information
eregon committed Dec 5, 2014
1 parent 5a441e6 commit 0c900adc0fe203983f2cbe20edb5d276e51bc659
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/org/jruby/truffle/runtime/core/RubyModule.java
@@ -526,7 +526,7 @@ public Iterable<RubyModule> selfAndIncludedModules() {
return new Iterable<RubyModule>() {
@Override
public Iterator<RubyModule> iterator() {
return new AncestorIterator(top);
return new IncludedModulesIterator(top);
}
};
}
@@ -536,7 +536,7 @@ public Iterable<RubyModule> includedModules() {
return new Iterable<RubyModule>() {
@Override
public Iterator<RubyModule> iterator() {
return new AncestorIterator(top);
return new IncludedModulesIterator(top);
}
};
}

0 comments on commit 0c900ad

Please sign in to comment.