mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-23 09:51:48 +01:00
Add Crono.config
This commit is contained in:
@@ -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