size

gdbm.size â fixnum Instance Public methods Returns the number of key-value pairs in this database.

store

gdbm.store(key, value) â value Instance Public methods Associates the value value with the specified key.

sync

gdbm.sync â gdbm Instance Public methods Unless the gdbm object has been opened with the SYNC flag, it is not guarenteed that database modification operations are immediately applied to the database file. This method ensures that all recent modifications to the database are written to the file. Blocks until all writing operations to the disk have been finished.

syncmode=

gdbm.syncmode = boolean â boolean Instance Public methods Turns the database's synchronization mode on or off. If the synchronization mode is turned on, the database's in-memory state will be synchronized to disk after every database modification operation. If the synchronization mode is turned off, GDBM does not wait for writes to be flushed to the disk before continuing. This option is only available for gdbm >= 1.8 where syncmode is turned off by default. See also: fastmode=

to_a

gdbm.to_a â array Instance Public methods Returns an array of all key-value pairs contained in the database.

to_hash

gdbm.to_hash â hash Instance Public methods Returns a hash of all key-value pairs contained in the database.

update

gdbm.update(other) â gdbm Instance Public methods Adds the key-value pairs of other to gdbm, overwriting entries with duplicate keys with those from other. other must have an #each_pair method.

value?

gdbm.value?(v) â true or false Instance Public methods Returns true if the given value v exists within the database. Returns false otherwise.

values

gdbm.values â array Instance Public methods Returns an array of all values of this database.

values_at

gdbm.values_at(key, ...) â array Instance Public methods Returns an array of the values associated with each specified key.