class Hash

Public Instance Methods

to_inverse() click to toggle source
# File lib/support/core_ext.rb, line 10
def to_inverse     
  ff = {}     
  self.each do |k, v|        
    if ff[v]
      ff[v] += 1       
    else         
      ff[v] = 1       
    end     
  end     
  ff
end