method

key

ruby latest stable - Class: GDBM
key(p1)
public

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.