Sha256: 84a972acb3c4713743e6a78ba520e23902b75060789e2d975978f3cd6d5f241e

Contents?: true

Size: 521 Bytes

Versions: 21

Compression:

Stored size: 521 Bytes

Contents

module CanTango
  class Ability
    class Cache
      class BaseCache
        attr_reader :name, :options

        def initialize name, options = {}
          @name, @options = [name, options]

          options.each_pair do |name, value|
            var = :"@#{name}"
            self.instance_variable_set(var, value)
          end
        end

        def load key
          raise NotImplementedError
        end

        def save key, rules
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4.6 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4.5 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4.3 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4.2 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4.1 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.4 lib/cantango/ability/cache/base_cache.rb
cantango-0.9.3.2 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9.5 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9.4 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9.3 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9.2 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9.1 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.9 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.8.1 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.8 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.7 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.6.2 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.6.1 lib/cantango/ability/cache/base_cache.rb
cantango-0.8.6 lib/cantango/ability/cache/base_cache.rb