lib/chamber/file_set.rb
###
# Internal: The set of files which are considered to be relevant, but with any
# duplicates removed.
#
The set of files which are considered to be relevant, but with any
duplicates removed.
The set of files which are considered to be relevant but with any duplicates removed .
def files
    @files ||= lambda do
      sorted_relevant_files = []
      file_globs.each do |glob|
        current_glob_files  = Pathname.glob(glob)
        relevant_glob_files = relevant_files & current_glob_files
        relevant_glob_files.map! do |file|
          File.new(path:           file,
                   namespaces:     namespaces,
                   decryption_key: decryption_key,
                   encryption_key: encryption_key)
        end
        sorted_relevant_files += relevant_glob_files
      end
      sorted_relevant_files.uniq
    end.call
  end
def files @files ||= lambda do sorted_relevant_files = [ ] file_globs . each do | glob | current_glob_files = Pathname . glob ( glob ) relevant_glob_files = relevant_files & current_glob_files relevant_glob_files . map! do | file | File . new ( path : file , namespaces : namespaces , decryption_key : decryption_key , encryption_key : encryption_key ) end sorted_relevant_files += relevant_glob_files end sorted_relevant_files . uniq end . call end
Internal: The set of files which are considered to be relevant, but with any
duplicates removed.
Internal : The set of files which are considered to be relevant but with any duplicates removed .