DBM.open(filename[, mode[, flags]]) â dbmDBM.open(filename[, mode[, flags]]) {|dbm| block} Class Public methods Open a dbm database and yields it if a block is given. See also DBM.new.
dbm[key] â string value or nil Instance Public methods Return a value from the database by locating the key string provided. If the key is not found, returns nil.
dbm[key] = value Instance Public methods Stores the specified string value in the database, indexed via the string key provided.
dbm.clear Instance Public methods Deletes all data from the database.
dbm.close Instance Public methods Closes the database.
dbm.closed? â true or false Instance Public methods Returns true if the database is closed, false otherwise.
dbm.delete(key) Instance Public methods Deletes an entry from the database.
dbm.delete_if {|key, value| block} â self Instance Public methods Deletes all entries for which the code block returns true. Returns self.
dbm.each_pair {|key,value| block} â self Instance Public methods Calls the block once for each [key, value] pair in the database. Returns self.
dbm.each_key {|key| block} â self Instance Public methods Calls the block once for each key string in the database. Returns self.
Page 160 of 11844