Add Crono.config

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 18:39:26 +02:00
parent 5059f3f5e8
commit b301b95ae5
4 changed files with 7 additions and 3 deletions

View File

@@ -8,4 +8,8 @@ module Crono
self.schedule = Schedule.new
end
end
def self.config
Config.instance
end
end

View File

@@ -5,7 +5,7 @@ module Crono
end
def every(period, *args)
Config.instance.schedule.add(@performer, Period.new(period, *args))
Crono.config.schedule.add(@performer, Period.new(period, *args))
end
end