method

shift

ruby latest stable - Class: GDBM
shift()
public

Removes a key-value-pair from this database and returns it as a two-item array [ key, value ]. Returns nil if the database is empty.