changed word count hash/json from string to integer

batch
Jeff Yates 2020-10-24 15:10:42 -04:00
parent a5d9693c80
commit 79e5bc63e1
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ require 'optparse'
def bin_counter (bin, text) def bin_counter (bin, text)
ret = Hash.new ret = Hash.new
bin.each do |word| bin.each do |word|
ret[word.to_sym] = text.scan(word).count.to_s ret[word.to_sym] = text.scan(word).count.to_i
end end
return ret return ret
end end