From: Sebastian Hungerecker Date: 2008-06-15T04:06:58+09:00 Subject: Re: Definning "to_s" in a class - inexpected result Andrés Suárez wrote: > def to_s >    @cards.map{ |card| print card} >   end to_s needs to return a string otherwise puts will not use it. Your to_s returns an array (as map returns an array) - an array of nils to be precise (because print returns nil). Also to_s should not print anything to the screen. HTH, Sebastian -- NP: Depeche Mode - Barrel Of A Gun Jabber: sepp2k@jabber.org ICQ: 205544826