Class: ContentCaching::Adapter::Base
- Inherits:
-
Object
- Object
- ContentCaching::Adapter::Base
- Defined in:
- lib/content_caching/adapters/base.rb
Defined Under Namespace
Classes: UnsupportedAdapter
Class Method Summary collapse
Class Method Details
.create(adapter_infos, wrapper) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/content_caching/adapters/base.rb', line 7 def self.create(adapter_infos, wrapper) adapter_type = adapter_infos[:adapter] = adapter_infos[:options] load "content_caching/adapters/#{adapter_type}_adapter.rb" ContentCaching::Adapter.const_get(klass_adapter(adapter_type)).new(wrapper, ) end |