title: Recursively convert all numeric strings to integers in a Ruby hash
body: <p>I have a hash of a random size, which may have values like <code>"100"</code>, which I would like to convert to integers. I know I can do this using <code>value.to_i if value.to_i.to_s == value</code>, but I'm not sure how would I do that recursively in my hash, considering that a value can be either a string, or an array (of hashes or of strings), or another hash.</p>