# File lib/rake/file_list.rb, line 350 350: def exclude?(fn) 351: return true if @exclude_patterns.any? do |pat| 352: case pat 353: when Regexp 354: fn =~ pat 355: when /[*?]/ 356: File.fnmatch?(pat, fn, File::FNM_PATHNAME) 357: else 358: fn == pat 359: end 360: end 361: @exclude_procs.any? { |p| p.call(fn) } 362: end