Sha256: 76f8dc239563ab6399b22ea7103d25bf8d3088e98eaad9cd5921554c0b81e63f
Contents?: true
Size: 368 Bytes
Versions: 9
Compression:
Stored size: 368 Bytes
Contents
class BaseWorker include ModernTimes::Base::Worker def start while true do sleep 1 perform end rescue Exception => e puts "Caught #{e.inspect}" end def perform raise "Need to override perform method in #{self.class.name}" end def stop end def status "Need to override status method in #{self.class.name}" end end
Version data entries
9 entries across 9 versions & 1 rubygems