title: Using def_delegate with a hash
body: <p>I know how Forwardable#def_delegate works with methods on objects, but is there a similar way to forward methods names to hash keys. Like:</p>
  
  <pre><code>hash = { some_value: 42, other_value: 31415 }
  def_delegate :hash, :some_value, :other_value
  </code></pre>
  
  <p>Calling <code>object.some_value</code> should return <code>42</code></p>
  
  <p>PS: def and class eval is a way, but is there a nicer way?</p>