I'd like to save some hash objects to a collection (in the Java world think of it as a List). I search online to see if there is a similar data structure in Ruby and have found none. For the moment being I've been trying to save hash a[]
into hash b[]
, but have been having issues trying to get data out of hash b[]
.
Are there any built-in collection data structures on Ruby? If not, is saving a hash in another hash common practice?