removed unneeded to_sym

batch
Jeff Yates 2020-07-15 18:18:06 -04:00
parent 94cd0f7eb8
commit 85ca5fe2e1
1 changed files with 2 additions and 1 deletions

View File

@ -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