Class: Cachetastic::Caches::Base::RegisteredCaches
- Includes:
- Singleton
- Defined in:
- lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb
Overview
Used to store a list of all the caches registered with the system. In order for a cache to be registered it must extend Cachetastic::Caches::Base.
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
list of all caches registered with the system.
Instance Method Summary collapse
-
#initialize ⇒ RegisteredCaches
constructor
A new instance of RegisteredCaches.
Constructor Details
#initialize ⇒ RegisteredCaches
Returns a new instance of RegisteredCaches.
37 38 39 |
# File 'lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb', line 37 def initialize @list = [] end |
Instance Attribute Details
#list ⇒ Object (readonly)
list of all caches registered with the system.
35 36 37 |
# File 'lib/gems/cachetastic-2.1.2/lib/cachetastic/caches/base.rb', line 35 def list @list end |