From f043d2f971d97ba5b2dfdf3f93e00accf8a3d3ad Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 13 Jun 2001 10:51:39 +0000 Subject: * 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 --- doc/NEWS | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') 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. -- cgit