removed unneeded to_sym
parent
94cd0f7eb8
commit
85ca5fe2e1
|
@ -67,7 +67,8 @@ text = File.read('tester.txt')
|
||||||
text = strip_text(text,'PLOVEINTAKE','PLOVECLOSING')
|
text = strip_text(text,'PLOVEINTAKE','PLOVECLOSING')
|
||||||
output = Hash.new #Creating the output storage object
|
output = Hash.new #Creating the output storage object
|
||||||
bins = Hash.new #This hash stores the bins
|
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|
|
bins.each_key do |bin_number|
|
||||||
key = bin_number.to_sym
|
key = bin_number.to_sym
|
||||||
|
|
Loading…
Reference in New Issue