dbm.length â integer Instance Public methods Returns the number of entries in the database.
dbm.keys â array Instance Public methods Returns an array of all the string keys in the database.
dbm.has_key?(key) â boolean Instance Public methods Returns true if the database contains the specified key, false otherwise.
dbm.key(value) â string Instance Public methods Returns the key for the specified value.
dbm.invert â hash Instance Public methods Returns a Hash (not a DBM database) created by using each value in the database as a key, with the corresponding key as its value.
dbm.has_value?(value) â boolean Instance Public methods Returns true if the database contains the specified string value, false otherwise.
dbm.fetch(key[, ifnone]) â value Instance Public methods Return a value from the database by locating the key string provided. If the key is not found, returns ifnone. If ifnone is not given, raises IndexError.
dbm.empty? Instance Public methods Returns true if the database is empty, false otherwise.
Page 2171 of 2275