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 | f043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad (patch) | |
| tree | cc69dd031427b3a0c11ceaa8b725d7a155511817 /doc | |
| parent | 6b551cfbfa6c076d7e3473130d437e1e0cef2e28 (diff) | |
| download | ruby-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/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. |
