I’m having problems with displaying an object correctly. I keep getting
obj’s ID back, like this:
sendto("Chromosomes: " + p.c_chromosomes.to_s) # sort of ‘puts’
Checking with the Pickaxe, I see they have a solution (no obvious
explanation though), where they suggest redifining to_s to accomodate
purpose in their ‘song’ class. This is no good for me though, as to_s
be used to display a lot of things, not just chromosomes.
Uhm. I feel like I should provide more info to ensure an accurate
but I’m not sure what or how much is necessary.
Perhaps that the variable actually saves right in the yaml file:
c_chromosomes: # hash of arrays
Any insights would be much appreciated.