mirror of
https://github.com/plashchynski/crono.git
synced 2026-11-22 08:11:36 +01:00
Add Crono.config
This commit is contained in:
1 parent
5059f3f5e8
commit
b301b95ae5
4 files changed
+7
-3
No files matched your search
@@ -8,4 +8,8 @@ module Crono
|
||||
self.schedule = Schedule.new
|
||||
end
|
||||
end
|
||||
|
||||
def self.config
|
||||
Config.instance
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user