lib/backports/3.0.0/hash/except.rb



class Hash
  def except(*keys)
    if keys.size > 4 && size > 4 # index if O(m*n) is big
      h = {}
      keys.each { |key| h[key] = true }
      keys = h
    end
    reject { |key, _value| keys.include? key}
  end
end unless Hash.method_defined? :except