Class: CARPS::UserConfig
- Inherits:
-
YamlConfig
- Object
- YamlConfig
- CARPS::UserConfig
- Defined in:
- lib/carps/util/config.rb
Overview
User configurations, which may be stored in many files and which should not crash the system on an error
Direct Known Subclasses
Class Method Summary collapse
-
.load(filepath) ⇒ Object
Load a user file.
Instance Method Summary collapse
-
#initialize ⇒ UserConfig
constructor
Subclasses must call super.
Methods inherited from YamlConfig
Constructor Details
#initialize ⇒ UserConfig
Subclasses must call super
122 123 124 |
# File 'lib/carps/util/config.rb', line 122 def initialize fail_hard false end |
Class Method Details
.load(filepath) ⇒ Object
Load a user file.
127 128 129 130 131 132 |
# File 'lib/carps/util/config.rb', line 127 def self.load filepath config = self.allocate config.read filepath config.fail_hard false config end |