Skip to content

Commit

Permalink
Improve documentation for File.glob.
Browse files Browse the repository at this point in the history
Closes rubyzip#338.
  • Loading branch information
hainesr committed Jun 26, 2021
1 parent a301d68 commit 8699e35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ def find_entry(entry_name)
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
Expand Down

0 comments on commit 8699e35

Please sign in to comment.