Flowdock
method

open

Importance_1
v2_4_6 - Show latest stable - 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.