delete(key) -> object | nil
[permalink][rdoc]delete(key) {|key| ... } -> object
与えられた key に対応する項目を削除します。
require 'gdbm' GDBM.open("a.db") do |db| db['a'] = "aaa" db['d'] = "ddd" db.delete("a") # => "aaa" db.delete("b") # => nil db.delete("c"){|k| "c is missing" } # => "c is missing" db.delete("d"){|k| "d is missing" } # => "ddd" end