Sha256: 4b7fc31d17a36fe52bbac9d9bd94fca9ffbab87420da8b7c2edb11528199e2bb
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
module Sidetiq module Schedulable module ClassMethods def tiq(&block) clock = Sidetiq::Clock.instance clock.synchronize do clock.schedule_for(self).instance_eval(&block) end end end def self.included(klass) klass.extend(Sidetiq::Schedulable::ClassMethods) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.1.2 | lib/sidetiq/schedulable.rb |