From: Lyndon Samson Date: 2006-01-06T21:30:59+09:00 Subject: Re: how remove puts inside method? ------=_Part_62661_23650148.1136550646416 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > BUT: I still would like to remove 'puts' and 'warn' in the > process_transaction method and would much prefer to 'puts' a resulting > string later in the transactions.each statement (or write that to a > file). A simple solution is you can allways stuff your output in an array. out =3D [] out << "Message #{msg}" out.each { |line| puts line } You know you can return multiple values from a method right? return out, retCode, a,b,c ------=_Part_62661_23650148.1136550646416--