each_pair

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.

each_value

gdbm.each_value { |value| block } â gdbm Instance Public methods Executes block for each key in the database, passing the corresponding value as a parameter.

empty?

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

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=

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.

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.

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.

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.

invert

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

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.