method

replace

ruby latest stable - Class: YAML::DBM
replace( hsh )
public

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.