Note to Self: Symbolize Keys

by Zach Briggs

Regretfully, YAML.load_file returns a hash with strings for keys rather than symbols. This is easily rectified with an inject or each_with_object, but I much prefer the active support  symbolize_keys! method since it modifies the hash in place. Here is how to require only what's needed for the non-Rails ruby projects in our lives.