ruby-tdb.git  about / heads / tags
Trivial Database bindings for Ruby
blob 67114c9133f7111f1e644858a0ab40444cdfd47d 297 bytes (raw)
$ git show v0.2.0:lib/tdb.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
# -*- encoding: binary -*-
require 'tdb_ext'
class TDB
  autoload :MT, 'tdb/mt'

  # makes the current TDB object thread-safe
  def threadsafe!
    extend MT
  end

  # will return true when TDB::MT is included in TDB or the TDB
  # object is extended by TDB
  def threadsafe?
    false
  end
end

git clone https://yhbt.net/ruby-tdb.git