diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-01 14:26:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-01 14:45:47 +0900 |
commit | 9ca30516605e4fb3aaaaa268a6542635736ba1e4 (patch) | |
tree | 47103a0dafabc7c49145e4aa582a9eadf24e6162 | |
parent | 9692aeedf117a35933cf63cdce964e6403337306 (diff) |
[DOC] fixed the default value of flags [ci skip]
-rw-r--r-- | dir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |