I have an array of ruby objects that looks something like this:
[#<email: "someemail" other_properties: "SDFDF">, #<...>, #<...>]
Each of the objects in the array has an email property. I want to get a new array of all the email properties of the ruby objects in the array.
After executing the code, I would have an array that looked like this:
["[email protected]", "[email protected]", ...]
I am newer to ruby and want to do this in the most rubyish way possible.
My question is, what's the best way to do this in ruby?