Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

YAML::DBM#replace

ydbm.replace(hash) → ydbm

Replaces the contents of the database with the contents of the specified object. Takes any object which implements the each_pair method, including Hash and DBM objects.

See also #reject #select #key #shift also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1