Sha256: e58ce1ab17574127e82693cecbb66f2040e6ddad50420ac9a194dd13102b3fcd
Contents?: true
Size: 416 Bytes
Versions: 8
Compression:
Stored size: 416 Bytes
Contents
# encoding: utf-8 require 'say_when/triggers/base' module SayWhen module Triggers class OnceStrategy include SayWhen::Triggers::Base attr_accessor :once_at def initialize(options = nil) super self.once_at = options[:at] || Time.now end def next_fire_at(time = nil) nfa = once_at if (!time || (time <= once_at)) nfa end end end end
Version data entries
8 entries across 8 versions & 1 rubygems