Class: Everdone::Config
- Inherits:
-
Object
- Object
- Everdone::Config
- Defined in:
- lib/everdone/config.rb
Instance Method Summary collapse
-
#initialize(default_hash_file, user_settings_file) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(default_hash_file, user_settings_file) ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 15 16 17 |
# File 'lib/everdone/config.rb', line 10 def initialize(default_hash_file, user_settings_file) @defaults = unmarshall_from_file(default_hash_file) @user_settings_file = user_settings_file @users = unmarshall_from_file(@user_settings_file) @current = {} collate_settings() end |