Sha256: 74a63dbd5af7acdd97edfbb299cb5a538afa70e99644f647f22fc891181ad362
Contents?: true
Size: 401 Bytes
Versions: 9
Compression:
Stored size: 401 Bytes
Contents
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)
Version data entries
9 entries across 9 versions & 1 rubygems