Skip to content

Commit

Permalink
Restore fnmatch name for Pathname#fnmatch?
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jan 4, 2024
1 parent d9a4a05 commit a19c001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ext/pathname/RubyPathname.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ public IRubyObject sub_ext(ThreadContext context, IRubyObject newExt) {

/* Facade for File */

@JRubyMethod(alias = "fnmatch?")
@JRubyMethod(name = {"fnmatch", "fnmatch?"})
public IRubyObject fnmatch_p(ThreadContext context, IRubyObject arg0) {
RubyClass File = context.runtime.getFile();
return sites(context).fnmatch_p.call(context, File, File, arg0, getPath());
}

@JRubyMethod(alias = "fnmatch?")
@JRubyMethod(name = {"fnmatch", "fnmatch?"})
public IRubyObject fnmatch_p(ThreadContext context, IRubyObject arg0, IRubyObject arg1) {
RubyClass File = context.runtime.getFile();
return sites(context).fnmatch_p.call(context, File, File, arg0, getPath(), arg1);
Expand Down

0 comments on commit a19c001

Please sign in to comment.