From: mental@... Date: 2005-11-23T08:05:47+09:00 Subject: Re: what is the ruby way to do this? Quoting Caleb Tennis : > You could get fancier and just call "<<" on everything, catching > exceptions and handling them for objects that don't implement > that method. It's better to use respond_to? -- if you get a NameError, you can't distinguish between the object itself not responding to :"<<" and something deep in the bowels of its :"<<" implementation not responding to :"<<". -mental