instance method
Pathname#fnmatch
(::String pattern, ?::Integer flags) -> bool
fnmatch(pattern, ...)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 926
def fnmatch(pattern, ...) File.fnmatch(pattern, @path, ...) end
See File.fnmatch. Return true if the receiver matches the given pattern.