dbm.each_pair {|key,value| block} â self Instance Public methods Calls the block once for each [key, value] pair in the database. Returns self.
dbm.each_value {|value| block} â self Instance Public methods Calls the block once for each value string in the database. Returns self.
dbm.empty? Instance Public methods Returns true if the database is empty, 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.has_key?(key) â boolean Instance Public methods Returns true if the database contains the specified key, false otherwise.
dbm.has_value?(value) â boolean Instance Public methods Returns true if the database contains the specified string value, false otherwise.
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.key(value) â string Instance Public methods Returns the key for the specified value.
Page 161 of 11844