Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/core_extensions/hash.rb

Instance Method Summary collapse

Instance Method Details

#flipObject



2
3
4
5
6
# File 'lib/locomotive/core_extensions/hash.rb', line 2

def flip
  self.collect do |k,v|
    [v,k]
  end.to_hash
end