Class: Postrocktues::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Postrocktues::Config
- Defined in:
- lib/postrocktues/config.rb
Defined Under Namespace
Classes: FileNotFound
Class Method Summary collapse
Class Method Details
.load(path = default_config) ⇒ Object
7 8 9 10 |
# File 'lib/postrocktues/config.rb', line 7 def load path = default_config raise FileNotFound unless File.exists? path new YAML.load_file(path) end |