From 9ca30516605e4fb3aaaaa268a6542635736ba1e4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 1 Jul 2021 14:26:06 +0900 Subject: [DOC] fixed the default value of flags [ci skip] --- dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.rb') 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 -- cgit v1.2.1