Safebox/lib/safebox/box.rb

22 lines
235 B
Ruby
Raw Normal View History

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
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