mirror of
https://github.com/plashchynski/crono.git
synced 2026-12-04 21:56:31 +01:00
Add Period#description
This commit is contained in:
1 parent
527f4768bc
commit
5b66e9049b
2 files changed
+13
No files matched your search
@@ -10,6 +10,12 @@ module Crono
|
||||
@period.since(since).change({hour: @at_hour, min: @at_min}.compact)
|
||||
end
|
||||
|
||||
def description
|
||||
desc = "every #{@period.inspect}"
|
||||
desc += " at #{@at_hour}:#{@at_min}" if @at_hour && @at_min
|
||||
desc
|
||||
end
|
||||
|
||||
def parse_at(at)
|
||||
case at
|
||||
when String
|
||||
|
||||
Reference in new issue
Block a user