From: Ilan Berci Date: 2008-01-22T02:20:42+09:00 Subject: Re: How to manipulate a Hash object to String 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/.