Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0