Method: QuickStore.configure

Defined in:
lib/quick_store.rb

.configure {|self.config| ... } ⇒ Object

Configures the QuickStore::Store

QuickStore.configure do |config|
  config.file_path = 'path/to/store/file.yml'
  config.key_separator = '|' # default is '/'
end

Yields:

Raises:



18
19
20
21
22
# File 'lib/quick_store.rb', line 18

def self.configure
  yield(self.config)
  raise(NO_FILE_PATH_CONFIGURED) unless self.config.file_path
  self.config
end