What\'s the (fastest/cleanest/straightforward) way to convert all keys in a hash from strings to symbols in Ruby?
This would be handy when parsing YAML.
Facets' Hash#deep_rekey is also a good option, especially:
Sample:
require 'facets/hash/deep_rekey' my_hash = YAML.load_file('yml').deep_rekey