This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
excluded_from_list?(fn)
public
Should the given file name be excluded from the list?
NOTE: This method was formerly named “exclude?”, but Rails introduced
an exclude? method as an array
method and setup a conflict with file list. We renamed the method to avoid
confusion. If you were using “FileList#exclude?” in your user code, you
will need to update.
# File lib/rake/file_list.rb, line 360
def excluded_from_list?(fn)
return true if @exclude_patterns.any? do |pat|
case pat
when Regexp
fn =~ pat
when /[*?]/
File.fnmatch?(pat, fn, File::FNM_PATHNAME)
else
fn == pat
end
end
@exclude_procs.any? { |p| p.call(fn) }
end