require 'pp' require 'pathname' require 'rubygems' require 'adapter/memory' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') $:.unshift(lib_path) require 'toystore' class User include Toy::Store adapter :memory, {} attribute :name, String end user = User.create(:name => 'John') pp user pp User.get(user.id) user.destroy pp User.get(user.id)