From: Jamal Hansen Date: 2005-08-18T16:33:07+09:00 Subject: Re: YANQ: Nesting in YAML On 8/17/05, basi wrote: > But now I cannot get at the values ["weed", "sick"] > > irb(main):056:0> h["y"]["cc"] > => ["see", {"sea"=>["weed", "sick"]}] > irb(main):057:0> h["y"]["cc"]["sea"] > TypeError: cannot convert String into Integer > from (irb):57:in `[]' > from (irb):57 > from :0 I think h["y"]["cc"][1]["sea"][1] would return "sick" since "sea" is a key in a hash in an array which contains an array. er.. yeah. -Jamal