Skip to content

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

Return a value from the database by locating the key string provided. If the key is not found, returns nil.

See also #[]= .open .new #clear