method

filter!

ruby latest stable - Class: Hash

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

filter!()
public

Equivalent to Hash#keep_if, but returns nil if no changes were made.

Hash#filter! is an alias for Hash#select!.