Sha256: 342a1f3b7c8c247a1a14c889e69abb8996eb1ed38c13b576084af82d67ea3876
Contents?: true
Size: 699 Bytes
Versions: 5
Compression:
Stored size: 699 Bytes
Contents
module ActiveEnum module Storage autoload :MemoryStore, "active_enum/storage/memory_store" autoload :I18nStore, "active_enum/storage/i18n_store" class NotImplemented < StandardError; end class AbstractStore def initialize(enum_class, order, options={}) @enum, @order, @options = enum_class, order, options end def set(id, name, meta=nil) raise NotImplemented end def get_by_id(id) raise NotImplemented end def get_by_name(name) raise NotImplemented end def values _values end private def _values raise NotImplemented end end end end
Version data entries
5 entries across 5 versions & 1 rubygems