Well, he wants to_s so that when you run "puts Domain.new" Ruby wil automaticall call to_s on the new domain object and output the result. Bill On Wed, 5 Jan 2005 00:27:46 +0900, Douglas Livingstone <rampant / gmail.com> wrote: > > > def to_s > > > return sprintf('%s=%s', self.class, @value) > > > end > > > Module seems more natural to me, but maybe "Representable" would be a > > better name. > > Or something like "Pretty_s" because to_s exists anyway. > > Douglas > > -- $stdout.sync = true "Just another Ruby hacker.".each_byte do |b| ('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr end; print "\n"