Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/locomotive/core_extensions/hash.rb
Instance Method Summary collapse
Instance Method Details
#flip ⇒ Object
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 |