Sha256: 27c9bbc56daf9260821ec70e879acff34108cd4542af228a2e0bdfbf3ae3d60a
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
module Roqua::Scheduling class Task attr_reader :name, :options def initialize(name, options, callback) @name = name @options = options @callback = callback end def run_at options[:run_at] end def next_run_at run_at.call end def run @callback.call end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roqua-support-0.1.27 | lib/roqua/scheduling/task.rb |