class Hash

  def slice(*keys)
    hash = {}
    keep_keys.each do |key|
      hash[key] = fetch(key) if key?(key)
    end
    hash
  end

end

class Hash

  def slice(*keep_keys)
    hash = {}
    keep_keys.each do |key|
      hash[key] = fetch(key) if key?(key)
    end
    hash
  end

end

Fix core ext argument error.
Fix core ext argument error.
