Sha256: 8a7a686427750c907497259c7ee60daa8f6e86d3a27d2a221210a4280fd090a9
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
module Xampl class DumbPersister < Persister def initialize(name=nil, format=nil, ignore=nil) super(name, format) @module_map = {} @cache = {} end def DumbPersister.kind :dumb end def kind DumbPersister.kind end def sync_done end def has_changed(xampl) throw :mixed_persisters unless self == xampl.persister end def cache(xampl) xampl end def uncache(xampl) end def clear_cache end def read_from_cache(klass, pid, target=nil) return nil, target end def write(xampl) return true end def read(klass, pid, target=nil) return nil end end Xampl.register_persister_kind(DumbPersister) end
Version data entries
5 entries across 5 versions & 1 rubygems