method

slice

slice(*keys)
public

Returns a new hash with only the given keys.