method

replace

v2_6_3 - Show latest stable - Class: SDBM
replace(p1)
public

Empties the database, then inserts the given key-value pairs.

This method will work with any object which implements an each_pair method, such as a Hash.