Module: Cacheable
- Extended by:
- CacheAdapter
- Defined in:
- lib/cacheable.rb,
lib/cacheable/version.rb,
lib/cacheable/cache_adapter.rb,
lib/cacheable/cache_adapters.rb,
lib/cacheable/method_generator.rb,
lib/cacheable/cache_adapters/memory_adapter.rb
Defined Under Namespace
Modules: CacheAdapter, CacheAdapters, MethodGenerator, VERSION
Constant Summary
Constants included from CacheAdapter
CacheAdapter::CACHE_ADAPTER_METHODS, CacheAdapter::DEFAULT_ADAPTER
Class Method Summary collapse
Methods included from CacheAdapter
cache_adapter, cache_adapter=, extended
Class Method Details
.included(base) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/cacheable.rb', line 34 def self.included(base) base.extend(Cacheable::MethodGenerator) interceptor_name = base.send(:method_interceptor_module_name) remove_const(interceptor_name) if const_defined?(interceptor_name) base.prepend const_set(interceptor_name, Module.new) end |