June 2017
Beginner
330 pages
7h 30m
English
Next, we are going to see how to convert a hash into an array. We can leverage the built-in Ruby array conversion method to accomplish this for us, as you can see here:
Array(people)
The output of this code is as follows:

Taking a look at our newly rendered array, each key/value pair has been converted to an array, nested inside one large array that contains all of the ...
Read now
Unlock full access