Class: Cabalist::Configuration
- Inherits:
-
Object
- Object
- Cabalist::Configuration
- Includes:
- Singleton
- Defined in:
- lib/cabalist/configuration.rb
Overview
Cabalist settings.
This class is a singleton storing some configuration data of the Cabalist library as used by the application.
Instance Attribute Summary (collapse)
-
- (String) db_path
Path to the local LevelDB instance.
-
- (Array) frontend_classes
Cabalist-enabled classes that should be exposed via web GUI.
Instance Method Summary (collapse)
-
- (LevelDB::DB) database
Get the local instance of LevelDB used for caching.
Instance Attribute Details
- (String) db_path
Path to the local LevelDB instance
16 17 18 |
# File 'lib/cabalist/configuration.rb', line 16 def db_path @db_path end |
- (Array) frontend_classes
Cabalist-enabled classes that should be exposed via web GUI
20 21 22 |
# File 'lib/cabalist/configuration.rb', line 20 def frontend_classes @frontend_classes end |
Instance Method Details
- (LevelDB::DB) database
Get the local instance of LevelDB used for caching.
25 26 |
# File 'lib/cabalist/configuration.rb', line 25 def database end |