Skip to content

Commit

Permalink
[Truffle] Fix Module#public_instance_methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Apr 20, 2015
1 parent 190234d commit 4e6eab6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ public PublicInstanceMethodsNode(PublicInstanceMethodsNode prev) {

@Specialization
public RubyArray publicInstanceMethods(RubyModule module, UndefinedPlaceholder argument) {
return publicInstanceMethods(module, false);
return publicInstanceMethods(module, true);
}

@Specialization
Expand All @@ -1620,12 +1620,10 @@ public RubyArray publicInstanceMethods(RubyModule module, boolean includeAncesto

return RubyArray.fromObjects(getContext().getCoreLibrary().getArrayClass(),
module.filterMethods(includeAncestors, new RubyModule.MethodFilter() {

@Override
public boolean filter(InternalMethod method) {
return method.getVisibility() == Visibility.PUBLIC;
}

}).toArray());
}
}
Expand Down

0 comments on commit 4e6eab6

Please sign in to comment.