# File lib/puppet/file_serving/fileset.rb, line 49 49: def ignore?(path) 50: return false if @ignore == [nil] 51: 52: # 'detect' normally returns the found result, whereas we just want true/false. 53: ! @ignore.detect { |pattern| File.fnmatch?(pattern, path) }.nil? 54: end