# File lib/buff/ignore/ignore_file.rb, line 73 def ignored?(filename) base = File.expand_path(options[:base] || File.dirname(filepath)) basename = filename.sub(base + File::SEPARATOR, '') ignores.any? { |ignore| File.fnmatch?(ignore, basename) } end