Sha256: cdd3dc1696cf105872ca95ac832815e2c6a4f1a5c950086a28d20a50c970d34b
Contents?: true
Size: 452 Bytes
Versions: 15
Compression:
Stored size: 452 Bytes
Contents
class SimpleJob cattr_accessor :runs; self.runs = 0 def perform; @@runs += 1; end end class ErrorJob cattr_accessor :runs; self.runs = 0 def perform; raise 'did not work'; end end class LongRunningJob def perform; sleep 250; end end class OnPermanentFailureJob < SimpleJob def on_permanent_failure end end module M class ModuleJob cattr_accessor :runs; self.runs = 0 def perform; @@runs += 1; end end end
Version data entries
15 entries across 15 versions & 6 rubygems