[DOC] more precise description of "**" in Dir.glob pattern [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-10-27 08:51:54 +09:00
parent c56fdaecc4
commit 135d369096
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
1 changed files with 3 additions and 1 deletions

4
dir.rb
View File

@ -81,7 +81,9 @@ class Dir
# File::FNM_DOTMATCH flag or something like <code>"{*,.*}"</code>. # File::FNM_DOTMATCH flag or something like <code>"{*,.*}"</code>.
# #
# <code>**</code>:: # <code>**</code>::
# Matches directories recursively or files expansively. # Matches directories recursively if followed by <code>/</code>. If
# this path segment contains any other characters, it is the same as the
# usual <code>*</code>.
# #
# <code>?</code>:: # <code>?</code>::
# Matches any one character. Equivalent to <code>/.{1}/</code> in regexp. # Matches any one character. Equivalent to <code>/.{1}/</code> in regexp.