ruby-changes:66657
From: Nobuyoshi <ko1@a...>
Date: Thu, 1 Jul 2021 14:49:41 +0900 (JST)
Subject: [ruby-changes:66657] 9ca3051660 (master): [DOC] fixed the default value of flags [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=9ca3051660 From 9ca30516605e4fb3aaaaa268a6542635736ba1e4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> 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(-) diff --git a/dir.rb b/dir.rb index 3b0e9d9..4d27b00 100644 --- a/dir.rb +++ b/dir.rb @@ -298,7 +298,7 @@ class << File https://github.com/ruby/ruby/blob/trunk/dir.rb#L298 # 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.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/