summaryrefslogtreecommitdiffstats
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
commitf043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad (patch)
treecc69dd031427b3a0c11ceaa8b725d7a155511817 /doc
parent6b551cfbfa6c076d7e3473130d437e1e0cef2e28 (diff)
downloadruby-f043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad.tar.gz
ruby-f043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad.tar.xz
ruby-f043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad.zip
* 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: http://svn.ruby-lang.org/repos/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 6db42b871..9bf047329 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.