class Rufo::FileList

def exclude(*patterns, &block)


FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c']
If "a.c" is not a file, then ...

FileList['a.c', 'b.c'].exclude("a.*") => ['b.c']
If "a.c" is a file, then ...

FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c']
FileList['a.c', 'b.c'].exclude("a.c") => ['b.c']
Examples:

file.
system, then an glob pattern in the exclude list will not exclude the
is explicitly added to a file list, but does not exist in the file
Note that glob patterns are expanded against the file system. If a file

return true when given to the block.
strings. In addition, a block given to exclude will remove entries that
list. Patterns may be regular expressions, glob patterns or regular
Register a list of file name patterns that should be excluded from the
def exclude(*patterns, &block)
  patterns.each do |pat|
    @exclude_patterns << pat
  end
  @exclude_procs << block if block_given?
  resolve_exclude unless @pending
  self
end