how can i delete duplicate values from a hash of hash

I need a unique hash , where the value of “one” should never repeat.

for example,

hash= {"1"=>{"one"=>1,"two"=>2},

then the result should be,

hash= {"1"=>{"one"=>1,"two"=>2},

Source: ruby

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.