Какой самый чистый способ извлечь third level
элементов из этой структуры при условии, что она не симметрична:
yaml = [
{"Collection"=>[
{"Jeans"=>[
{"Trends"=>[
{"Building on basics"=>"Jeans"},
{"Unexpected pairings"=>"Jeans"},
{"Retro chic"=>"Jeans"} # extract me
]},
{"Styles"=>[
{"Straight Leg"=>"Straight Leg"},
{"Bootcut"=>"Bootcut"},
{"Trouser"=>"Trouser"},
{"Slim Leg"=>"Slim Leg"}
]},
{"Wash"=>[
{"Blues"=>"Blues"},
{"Black/Grey"=>"BlackGrey"},
{"Whites"=>"Summer Whites"},
{"Colors"=>"Colors"},
{"Resin"=>"Resin"}
]},
{"Details"=>[
{"Embroidered"=>"Embroidered"},
{"Tuxedo"=>"Tuxedo"},
{"Jeweled"=>"Jeweled"}
]}
]},
{"Bodyshapers"=>[
{"All"=>[
{"All"=>"BodyShapers"}
]}
]}
]},
{"Lift Tuck"=>nil},
{"Find Us" =>[
"By City",
"International Websites",
"Online Retailers"
]},
{"Your Stories"=>nil},
{"The Skinny"=>[
"Trends",
"Behind the Scenes",
"VIP Events",
"In the News",
"Win a Pair"
]}
]