module Gemmy::Patches::EnumeratorPatch::InstanceMethods::Frequencies
Public Instance Methods
frequencies()
click to toggle source
taken from powerpack maps each element in the enum to it's num occurrances
# File lib/gemmy/patches/enumerator_patch.rb, line 54 def frequencies each_with_object(Hash.new(0)) { |e, a| a[e] += 1 } end