diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-13 10:51:39 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-13 10:51:39 +0000 |
commit | 6aa71d4c800d11d9735007cf3b063e5ea2fc5941 (patch) | |
tree | cc69dd031427b3a0c11ceaa8b725d7a155511817 /doc | |
parent | 68ebfef615c0f4cda0aaa6837c92b03d47a6c8db (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/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. |