module Hashie::Extensions::StrictKeyAccess
def [](key)
KeyError: key not found: "noes"
>> a["noes"]
=> {}
>> a = StrictKeyAccessHash.new(123)
With StrictKeyAccess:
=> 123
>> a["noes"]
=> {}
>> a = Hash.new(123)
Normal:
NOTE: When key lookup fails a KeyError is raised.
NOTE: Defaults don't make any sense with a StrictKeyAccess.
def [](key) fetch(key) end