Flowdock
invert() public

Returns a new hash created by using hsh’s values as keys, and the keys as values.

   h = { "n" => 100, "m" => 100, "y" => 300, "d" => 200, "a" => 0 }
   h.invert   #=> {0=>"a", 100=>"n", 200=>"d", 300=>"y"}
Show source
Register or log in to add new notes.