Improve documentation for `File.glob`.

Closes #338.
This commit is contained in:
Robert Haines 2021-06-26 20:04:17 +01:00
parent a301d68eeb
commit 8699e356d4
1 changed files with 5 additions and 1 deletions

View File

@ -330,7 +330,11 @@ module Zip
selected_entry
end
# Searches for entries given a glob
# Search for entries given a glob pattern. You can also supply flags
# in the second argument, which are equivalent to those used by
# `::Dir.glob` and `::File.fnmatch`. Default flags are
# `::File::FNM_PATHNAME | ::File::FNM_DOTMATCH | ::File::FNM_EXTGLOB`,
# which will be overridden if you set your own flags.
def glob(*args, &block)
@entry_set.glob(*args, &block)
end