Lyndon Samson
1/6/2006 12:31:00 PM
>
> 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 = []
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