Skip to content

Commit 8834b2f

Browse files
authored
Merge pull request jruby#9213 from katafrakt/refine-method-visibility
Make `refine` method of `Module` private
2 parents b8a21c7 + f49c9e9 commit 8834b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/jruby/RubyModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ String anonymousMetaNameWithIdentifier(ThreadContext context) {
989989
return metaClass.getRealClass().getName(context) + ":0x" + Integer.toHexString(System.identityHashCode(this));
990990
}
991991

992-
@JRubyMethod(name = "refine", reads = SCOPE)
992+
@JRubyMethod(name = "refine", visibility = PRIVATE, reads = SCOPE)
993993
public IRubyObject refine(ThreadContext context, IRubyObject klass, Block block) {
994994
if (!block.isGiven()) throw argumentError(context, "no block given");
995995
if (block.isEscaped()) throw argumentError(context, "can't pass a Proc as a block to Module#refine");

0 commit comments

Comments
 (0)