Module: Yoda::Store::Adapters
- Defined in:
- lib/yoda/store/adapters.rb,
lib/yoda/store/adapters/base.rb,
lib/yoda/store/adapters/gdbm_adapter.rb,
lib/yoda/store/adapters/lazy_adapter.rb,
lib/yoda/store/adapters/memory_adapter.rb,
lib/yoda/store/adapters/gdbm_adapter/namespace_accessor.rb
Defined Under Namespace
Classes: Base, GdbmAdapter, LazyAdapter, MemoryAdapter
Class Method Summary
collapse
Class Method Details
.default_adapter_class ⇒ Class<Base>
9
10
11
|
# File 'lib/yoda/store/adapters.rb', line 9
def self.default_adapter_class
GdbmAdapter
end
|
.for(path) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/yoda/store/adapters.rb', line 14
def self.for(path)
if path
default_adapter_class.for(path + ".#{default_adapter_class.type}")
else
MemoryAdapter.new
end
end
|