Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
File.fnmatch?
(::string pattern, ::path path, ?::int flags) -> bool
fnmatch?(pattern, path, flags = 0)
dir.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/dir.rb, line 255
def fnmatch(pattern, path, flags = 0)
end
Alias of .fnmatch
Returns whether string pattern matches against string path, under the control of the given flags; see Filename Matching.