method

delete

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: SDBM
delete(p1) public

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.

Show source
Register or log in to add new notes.