Sha256: 1b53feff67402ae7162a4b0625b085c68d0daff1ce8e614ccbc1b41cc5883149
Contents?: true
Size: 344 Bytes
Versions: 14
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true module Sail module Types # Cron # # The Cron type returns true # if the saved cron string # matches the current time # (ignores seconds). class Cron < Type def to_value Fugit::Cron.new(@setting.value).match?(DateTime.now.utc.change(sec: 0)) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems