3

I have a nested hash of symbols like this:
{
a: {
b: :c,
d: {
e: :f
}
},
g: :h
}
I want to build an array that contains all symbols used in the hash, both keys and values, in any order. For the example above:
[:a, :b, :c, :d, :e, :f, :g, :h]
Is there any simple, fast...