shift()
public
Removes a [key, value] pair from the database, and returns it. If the
database is empty, returns nil.
The order in which values are
removed/returned is not guaranteed.
Show source
def shift
a = super
a[1] = YAML.load( a[1] ) if a
a
end