Class: DBGet::Config
- Inherits:
-
Hash
- Object
- Hash
- DBGet::Config
- Includes:
- Singleton
- Defined in:
- lib/dbget/config.rb
Class Method Summary collapse
Class Method Details
.load_from_yaml(yaml_path) ⇒ Object
7 8 9 10 11 |
# File 'lib/dbget/config.rb', line 7 def self.load_from_yaml(yaml_path) config = self.instance config.clear config.merge!(YAML.load_file(yaml_path)) end |