Flowdock
method

open

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: SDBM
open(*args) public

If called without a block, this is the same as SDBM.new.

If a block is given, the new database will be passed to the block and will be safely closed after the block has executed.

Example:

require 'sdbm'

SDBM.open('my_database') do |db|
  db['hello'] = 'world'
end
Show source
Register or log in to add new notes.