Skip to content

Commit

Permalink
[DOC] fixed the default value of flags [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 1, 2021
1 parent 9692aee commit 9ca3051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dir.rb
Expand Up @@ -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

0 comments on commit 9ca3051

Please sign in to comment.