From: EdUarDo Date: 2005-08-16T22:51:13+09:00 Subject: Re: newbie, to_s question > Because your to_s method returns nil. You want this > > def to_s() @name.to_s end > > and not That's right, I forgot that to_s must return a string, not to print a string > I'd also use the block form: > > File.open('tactics.dat') do |file| > # read > end I'll do, thanks a lot.