mirror of
https://github.com/plashchynski/crono.git
synced 2026-09-18 16:01:27 +02:00
Add basic Period class
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
module Periodicity
|
||||
class Period
|
||||
def initialize(period)
|
||||
@period = period
|
||||
end
|
||||
|
||||
def next
|
||||
@period.from_now
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user