Class: Tagm::Config
- Inherits:
- 
      Object
      
        - Object
- Tagm::Config
 
- Defined in:
- lib/tagm/config.rb
Defined Under Namespace
Classes: MissingDbPathError
Constant Summary collapse
- DB_PATH_VAR =
- 'TAGM_DB_PATH'
Class Method Summary collapse
Class Method Details
.db_path ⇒ Object
| 10 11 12 13 14 15 16 | # File 'lib/tagm/config.rb', line 10 def db_path @db_path ||= ENV.fetch(DB_PATH_VAR, nil) raise MissingDbPathError, "Missing #{DB_PATH_VAR} environment variable" unless @db_path @db_path end |