Sha256: 02befc3e1b443a90be1db5e7254bf848b1d4636913a27f2d8db3da449d38fc3f

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

module ActiveEnum
  module Storage
    autoload :MemoryStore, "active_enum/storage/memory_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
        raise NotImplemented
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_enum-0.9.7 lib/active_enum/storage/abstract_store.rb
active_enum-0.9.6 lib/active_enum/storage/abstract_store.rb
active_enum-0.9.5 lib/active_enum/storage/abstract_store.rb
active_enum-0.9.4 lib/active_enum/storage/abstract_store.rb
active_enum-0.9.3 lib/active_enum/storage/abstract_store.rb