class Hash

Public Instance Methods

fetch(key, &block) click to toggle source
# File lib/mean_girls/hash.rb, line 4
def fetch(key, &block)
  begin
    original_fetch(key, &block)
  rescue KeyError
    raise KeyError.new("Stop trying to make fetch happen, #{key.inspect}!")
  end
end
Also aliased as: original_fetch
original_fetch(key, &block)
Alias for: fetch