delete

sdbm.delete(key) รข value or nil
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.

doc_ruby_on_rails
2015-05-14 03:21:23
Comments
Leave a Comment

Please login to continue.