lib/herodot/configuration.rb in herodot-0.1.6 vs lib/herodot/configuration.rb in herodot-0.1.7
- old
+ new
@@ -10,11 +10,11 @@
'lunch_break_end' => '13:30',
'work_end' => '18:00'
}
}.freeze
- def initialize
- @worklog_file = '~/worklog'
+ def initialize(worklog_file = '~/worklog')
+ @worklog_file = worklog_file
if File.exist?(CONFIG_FILE)
@config = load_configuration
else
@config = DEFAULT_CONFIGURATION
save_configuration