Ruby’s Hash is a Swiss-Army Knife
Ruby's Hash is a Swiss-Army Knife –A Hash is a built-in data structure in Ruby that maps values to keys and has a constant-time O(1) lookup. This article shows the capabilities of this simple, but equally powerful tool. We’ll start with the basics but also cover some obscure but equally useful features of hash.