Sha256: 91f940d8f1c9b15a335a9c798eadd4065c736a84304a93c1902daf51bb6ce780
Contents?: true
Size: 433 Bytes
Versions: 7
Compression:
Stored size: 433 Bytes
Contents
module Toy module Identity class AbstractKeyFactory def key_type raise NotImplementedError, "#{self.class.name}.store_type isn't implemented." end def next_key(object) raise NotImplementedError, "#{self.class.name}#next_key isn't implemented." end def eql?(other) self.class == other.class && key_type == other.key_type end alias :== :eql? end end end
Version data entries
7 entries across 7 versions & 1 rubygems