summaryrefslogtreecommitdiff
path: root/dir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'dir.rb')
-rw-r--r--dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.rb b/dir.rb
index 3b0e9d99cd..4d27b0093e 100644
--- a/dir.rb
+++ b/dir.rb
@@ -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