delete(name) -> object
[permalink][rdoc]ルートnameに対応する値を削除します。
例:
require 'pstore' db = PStore.new("/tmp/foo") db.transaction do p db.roots # => [] ary = db["root"] = [1,2,3,4] ary[0] = [1,1.5] end db.transaction do |pstore| pstore.delete("root") # => [[1, 1.5], 2, 3, 4] pstore.delete("root") # => nil end
[SEE_ALSO] Hash#delete