<<

<<(o) Instance Public methods

new

new() Class Public methods

values_at

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

values

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

value?

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

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.

to_hash

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

to_a

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

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=

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.