Sha256: ff4104ab5dfbc370ec501e08f057d7266b778dec2d80a045764a75731168054c
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
class Dir def self.glob_with_ignore_file(ignore_file, base_dir, *glob_args, &block) filter = DirGlobIgnore::IgnoreFileList.new base_dir filter.ignore_file_name =ignore_file filter.load_ignore_files Dir.glob(*glob_args).reject do |file| if filter.ignore_list.include? File.expand_path(file) true else yield file if block_given? false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dir_glob_ignore-0.1.1 | lib/dir_glob_ignore/dir_patch.rb |
dir_glob_ignore-0.1.0 | lib/dir_glob_ignore/dir_patch.rb |