Unique on an array of hashes based on value July 22, 2023 by Tarik In Ruby 1.9, try the following a.uniq! {|e| e[:color] }