How do I use Ruby to access the properties of an object containing an array of objects?
I have a variable that looks something like this:
@myvar = [#<MYOBJECT::MObject0x00000000000000="000", @id="1000",
@status="Open", @color="Red">, #<MYOBJECT::MObject0x00000000000001="001",
@id="1001", @status="Closed", @blue="450">]
I tried:
@myvar.each(|name| puts "Status: #{name.status} Color: #{name.color}"
But it returns the full object instead of the property values.