On Tue, Dec 10, 2013 at 7:55 AM, selvag selvag <lists / ruby-forum.com> wrote:
> #!/usr/bin/ruby
> #hash_of_hash.rb
>
> list={"app1"=>101,"app2"=>104,"app3"=>109,"app4"=>123}
>
> h=Hash.new{ |h,id| h[id]=Hash.new{ |h,dt| h[dt]={} }}
> h["company"]["products"]=list
> puts h
>
> # we know this is hash of hash.
> # I want to store that hash thing in (postgreSQL) database.
> # share you points to store it.

If you would like us to reply to this please at least pretend you are
talking to fellow humans and use minimal form of kindness. And please
share your requirements.

Regards

robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/