class Rufo::FileList
def excluded_from_list?(filename)
def excluded_from_list?(filename) return true if @exclude_patterns.any? do |pat| case pat when Regexp filename =~ pat when GLOB_PATTERN flags = File::FNM_PATHNAME flags |= File::FNM_EXTGLOB File.fnmatch?(pat, filename, flags) else filename == pat end end @exclude_procs.any? { |p| p.call(filename) } end