Class: Pechkin::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Pechkin::Config
- Defined in:
- lib/pechkin/config.rb
Overview
Loads pechkin configuration
Instance Method Summary collapse
-
#initialize(file) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(file) ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/pechkin/config.rb', line 6 def initialize(file) super(YAML.safe_load(IO.read(file))) end |