keys

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

key?

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

key

gdbm.key(value) â key Instance Public methods Returns the key for a given value. If several keys may map to the same value, the key that is found first will be returned.

invert

gdbm.invert â hash Instance Public methods Returns a hash created by using gdbm's values as keys, and the keys as values.

include?

gdbm.has_key?(k) â true or falsegdbm.key?(k) â true or false Instance Public methods Returns true if the given key k exists within the database. Returns false otherwise.

has_value?

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

has_key?

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

fetch

gdbm.fetch(key [, default]) â value Instance Public methods Retrieves the value corresponding to key. If there is no value associated with key, default will be returned instead.

fastmode=

gdbm.fastmode = boolean â boolean Instance Public methods Turns the database's fast mode on or off. If fast mode is turned on, gdbm does not wait for writes to be flushed to the disk before continuing. This option is obsolete for gdbm >= 1.8 since fast mode is turned on by default. See also: syncmode=

empty?

gdbm.empty? â true or false Instance Public methods Returns true if the database is empty.