Mega Code Archive

 
Categories / Ruby / Hash
 

Objects within a hash are given a key that points to them

dictionary = { 'cat' => 'feline animal', 'dog' => 'canine animal' }