Use the delegate instance methods flexibly in class:
require 'forwardable'
class MyHash
extend(Forwardable)
include(Enumerable)
def_delegators(:@hash, :[], :[]=, :delete, :each,
:keys, :values, :length,
:empty?, :has_key?)
end