Skip to content

Commit f49c9e9

Browse files
committed
Make refine method of Module private
Same as MRI
1 parent b8a21c7 commit f49c9e9

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)