End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DBM#[]
dbm[key] → string value or nil
ext/dbm/dbm.c
View on GitHub ↗
static VALUE
fdbm_aref(VALUE obj, VALUE keystr)
{
return fdbm_fetch(obj, keystr, Qnil);
}
Return a value from the database by locating the key string provided. If the key is not found, returns nil.