Module: Hash::HashExtensions
- Included in:
- Hash
- Defined in:
- lib/ruckus/extensions/hash.rb
Instance Method Summary collapse
-
#flip ⇒ Object
XXX does the same thing as Hash#invert i think?.
Instance Method Details
#flip ⇒ Object
XXX does the same thing as Hash#invert i think?
4 5 6 7 |
# File 'lib/ruckus/extensions/hash.rb', line 4 def flip # XXX not used map {|k,v| [v,k]}.to_hash end |