title: Hash with indifferent access
body: <p>I have a non-Rails project in which I am loading some settings from a YAML file:</p>
  <pre class="lang-ruby prettyprint-override"><code>config = YAML::load File.open(&quot;#{LOG_ROOT}/config/database.yml&quot;)
  </code></pre>
  <p>I can only access this hash like <code>config[&quot;host&quot;]</code>, <code>config[&quot;username&quot;]</code> etc.</p>
  <p>I want indifferent access so I can use both <code>:host</code> and <code>&quot;host&quot;</code>.</p>
  <p>The reason is, that one of the gems in the project to which I am passing this hash seems to be accessing it using symbols and it fails currently.</p>
  <p>What is the best way to create a hash with indifferent access in this scenario?</p>