Class: Pomodoro::Config
- Inherits:
-
Object
- Object
- Pomodoro::Config
- Defined in:
- lib/pomodoro/config.rb
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 |
# File 'lib/pomodoro/config.rb', line 7 def initialize @data ||= YAML.load_file(CONFIG_PATH) rescue @data ||= Hash.new end |