1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] fixed the default value of flags [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-07-01 14:26:06 +09:00
parent 9692aeedf1
commit 9ca3051660
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
dir.rb
View file

@ -298,7 +298,7 @@ class << File
# File.fnmatch('**/foo', 'c:/a/b/c/foo', File::FNM_PATHNAME) #=> true
# File.fnmatch('**/foo', 'a/.b/c/foo', File::FNM_PATHNAME) #=> false
# File.fnmatch('**/foo', 'a/.b/c/foo', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true
def fnmatch(pattern, path, flags = nil)
def fnmatch(pattern, path, flags = 0)
end
alias fnmatch? fnmatch
end if false