gdbm[key] â value Instance Public methods Retrieves the value corresponding to key.
gdbm[key]= value â value Instance Public methods Associates the value value with the specified key.
gdbm.cachesize = size â size Instance Public methods Sets the size of the internal bucket cache to size.
gdbm.clear â gdbm Instance Public methods Removes all the key-value pairs within gdbm.
gdbm.close â nil Instance Public methods Closes the associated database file.
gdbm.closed? â true or false Instance Public methods Returns true if the associated database file has been closed.
gdbm.delete(key) â value or nil Instance Public methods Removes the key-value-pair with the specified key from this database and returns the corresponding value. Returns nil if the database is empty.
gdbm.delete_if { |key, value| block } â gdbm Instance Public methods Deletes every key-value pair from gdbm for which block evaluates to true.
gdbm.each_pair { |key, value| block } â gdbm Instance Public methods Executes block for each key in the database, passing the key and the correspoding value as a parameter.
gdbm.each_key { |key| block } â gdbm Instance Public methods Executes block for each key in the database, passing the key as a parameter.
Page 276 of 11844