2010-03-21 00:24:24 +01:00
|
|
|
require 'safebox/safebox'
|
2010-03-20 23:53:57 +01:00
|
|
|
|
|
|
|
class Safebox::Box
|
|
|
|
attr_reader :_, :db
|
|
|
|
|
2010-03-31 19:00:23 +02:00
|
|
|
def initialize db, _ = nil, _e = nil
|
2010-03-21 00:59:45 +01:00
|
|
|
@_, @db, @_e = _, db, _e
|
|
|
|
end
|
|
|
|
|
|
|
|
def _!
|
|
|
|
@_e
|
2010-03-20 23:53:57 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def put key, val
|
|
|
|
@db[ key] = val
|
|
|
|
end
|
|
|
|
|
|
|
|
def get key
|
|
|
|
@db[ key]
|
|
|
|
end
|
|
|
|
end
|