summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-13 10:51:39 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-13 10:51:39 +0000
commit6aa71d4c800d11d9735007cf3b063e5ea2fc5941 (patch)
treecc69dd031427b3a0c11ceaa8b725d7a155511817 /doc
parent68ebfef615c0f4cda0aaa6837c92b03d47a6c8db (diff)
* dir.c (Init_Dir): add a new method File::fnmatch? along with
File::Constants::FNM_*. While I am here, FNM_NOCASE is renamed to FNM_CASEFOLD which is commonly used by *BSD and GNU libc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/NEWS b/doc/NEWS
index 6db42b8714..9bf0473298 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -1,3 +1,12 @@
+: File#fnmatch, File::Constants::FNM_*
+
+ Added. Refer to the fnmatch(3) manpage for details.
+
+ e.g.
+
+ # exclude files matching "*.bak".
+ files.reject! { |fn| File::fnmatch?("*.bak", fn) }
+
: Method#==
Added.