Object
# File lib/termtter/task.rb, line 5 def initialize(args = {}, &block) @name = args[:name] @exec_at = Time.now + (args[:after] || 0) @interval = args[:interval] @exec_proc = block || lambda {} @work = true end
# File lib/termtter/task.rb, line 12 def execute args = if exec_proc.arity.zero? then [] else [self] end exec_proc.call(*args) if work end
[Validate]
Generated with the Darkfish Rdoc Generator 2.