class Hash

Public Instance Methods

to_ff() click to toggle source
# File lib/SEstimator/support/hash.rb, line 3
def to_ff
  self.inject({}) do |ff, pair|
    ff[pair.last] = ff[pair.last] ? ff[pair.last] + 1 : 1
    ff
  end
end