Code in Ruby so that only the names of all users are output from the double hash!
However, the output result shall be as follows.
Since it is an array, it is possible to pull the value with each! Let’s write the code!
What you are doing here is to search the contents of user_data with each and write the hash key [: user] [: profile] [: name] to search one by one. I will!
Let’s see the output result!
I succeeded in pulling only all the names successfully!
This reference article