diff --git a/sorter.rb b/sorter.rb index 801275a..4b3ed17 100755 --- a/sorter.rb +++ b/sorter.rb @@ -67,7 +67,8 @@ text = File.read('tester.txt') text = strip_text(text,'PLOVEINTAKE','PLOVECLOSING') output = Hash.new #Creating the output storage object bins = Hash.new #This hash stores the bins -csv.each { |bin| bins[bin[0].to_sym] = bin[1..].compact } #turn the csv array into a hash, remove nils + +csv.each { |bin| bins[bin[0]] = bin[1..].compact } #turn the csv array into a hash, remove nils bins.each_key do |bin_number| key = bin_number.to_sym