Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0