From 85ca5fe2e1f859a98d167f684dd905cf44bd16ad Mon Sep 17 00:00:00 2001 From: Jeff Yates Date: Wed, 15 Jul 2020 18:18:06 -0400 Subject: [PATCH] removed unneeded to_sym --- sorter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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