Skip to content

Instantly share code, notes, and snippets.

@ellismarte
Last active June 27, 2016 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellismarte/da974bf1d94406bd6204077ef85959db to your computer and use it in GitHub Desktop.
Save ellismarte/da974bf1d94406bd6204077ef85959db to your computer and use it in GitHub Desktop.
my_hash = {'a' => 1, 'b' => 1, 'c' => 2}
my_hash.values.map(&:uniq!)
values = my_hash.values.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment