Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

YAML::DBM#delete_if

ydbm.delete_if { |key, value| ... }

Calls the given block once for each key, value pair in the database. Deletes all entries for which the block returns true.

Returns self.

See also #delete #each #[]= #each_pair also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0