Module: Persist::SharderAdapter
- Defined in:
- lib/rbbt/persist/tsv/sharder.rb
Class Method Summary collapse
Class Method Details
.open(path, write, type = nil, options = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/rbbt/persist/tsv/sharder.rb', line 3 def self.open(path, write, type=nil, = {}, &block) database = CONNECTIONS[path] ||= Sharder.new(path, write, type, , &block) database.extend Persist::SharderAdapter unless Persist::SharderAdapter === database database end |