Sebastian Hungerecker wrote:
> Pokkai Dokkai wrote:
>> irb(main):001:0> h={'k1'=>'v1','k2'=>'v2','k3'=>'v3'}
>> => {"k1"=>"v1", "k2"=>"v2", "k3"=>"v3"}   ------->i want as a string
> 
> You want Hash#inspect

now i am facing new problem....


h={:a=>'aaa',:f=>BigDecimal.new("10")}
h.inspect       -----> {:f=>#<BigDecimal:b7d77a3c,'0.1E2',4(8)>, 
:a=>"aaa"}

i want like this----->{:f=>10, :a=>"aaa"}


any idea ?
-- 
Posted via http://www.ruby-forum.com/.