Module: SBDB::Arrayisch

Included in:
Queue, Recno
Defined in:
lib/sbdb/db.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



130
131
132
# File 'lib/sbdb/db.rb', line 130

def [] key
	super [key].pack('I')
end

#[]=(key, val) ⇒ Object



134
135
136
# File 'lib/sbdb/db.rb', line 134

def []= key, val
	super [key].pack('I'), val
end

#push(val, txn = nil) ⇒ Object



138
139
140
# File 'lib/sbdb/db.rb', line 138

def push val, txn = nil
	@db.put _txn(txn), "\0\0\0\0", val, Bdb::DB_APPEND
end