Damjan Rems wrote:

> 
> c = ''
> @return.each_pair {|k,v| c << "#{k}: #{v}," }
> 
> You would also have to remove trailing ,
> 
> by
> TheR

irb(main):001:0> {"1"=>"2", "3"=>4}.map{|k,v| "#{k}:#{v}"}.join(",")
=> "1:2,3:4"
irb(main):002:0>


no trailing comma.. :)

hth

ilan
-- 
Posted via http://www.ruby-forum.com/.