I have some dirt-simple YAML, and I need to traverse the object model
returned by YAML.parse().
So if the top-level object is a Map (corresponding naturally to a native
Hash), how do I get the keys and values?
map.children_with_index.each do |kid, key| p kid p key end
The 'key’s come out healthy Scalars, but the 'kid’s are always nil!
Permutations involving map[key] and map.at(key) also return nil, because
Oh why can’t I get non-nil kids from my map?? (Without using
to go down to the Hash - because I don’t want to!)