Class: QuickStore::Configuration
- Inherits:
-
Object
- Object
- QuickStore::Configuration
- Defined in:
- lib/quick_store/configuration.rb
Overview
The Configuration class is used internally by QuickStore to create a singleton configuration. The key_separator defines the character which can be used to access nested store items (default is “/”). The file_path determines where the YAML file is stored.
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#key_separator ⇒ Object
Returns the value of attribute key_separator.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 |
# File 'lib/quick_store/configuration.rb', line 10 def initialize @key_separator = '/' end |
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
8 9 10 |
# File 'lib/quick_store/configuration.rb', line 8 def file_path @file_path end |
#key_separator ⇒ Object
Returns the value of attribute key_separator.
8 9 10 |
# File 'lib/quick_store/configuration.rb', line 8 def key_separator @key_separator end |