lib/file_diff.rb
## process files and fill the @files array with lines array
#
process files and fill the @files array with lines array
process files and fill the @files array with lines array
def read_files
    @files.map! do |file|
      opened_file = File.open(file)
      begin
        opened_file.readlines
      rescue
        raise ReadFileError, "An error occured trying to read file #{file}"
      end
    end
  end
def read_files @files . map! do | file | opened_file = File . open ( file ) begin opened_file . readlines rescue raise ReadFileError , "An error occured trying to read file #{file}" end end end
process files and fill the @files array with lines array
process files and fill the @files array with lines array