Safebox/lib/safebox/box.rb

18 lines
196 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
@_, @db = _, db
end
def put key, val
@db[ key] = val
end
def get key
@db[ key]
end
end