diff --git a/sorter.rb b/sorter.rb index 51c627a..616f2b9 100755 --- a/sorter.rb +++ b/sorter.rb @@ -27,7 +27,7 @@ require 'optparse' def bin_counter (bin, text) ret = Hash.new 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 return ret end