sdbm.delete(key) รข value or nil
sdbm.delete(key) { |key, value| ... }
sdbm.delete(key) { |key, value| ... }
Instance Public methods
Deletes the key-value pair corresponding to the given key
. If
the key
exists, the deleted value will be returned, otherwise
nil
.
If a block is provided, the deleted key
and value
will be passed to the block as arguments. If the key
does not
exist in the database, the value will be nil
.
Please login to continue.