module WorkerKiller

Constants

VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/worker_killer.rb, line 16
def self.configure
  self.configuration ||= WorkerKiller::Configuration.new
  yield(configuration) if block_given?
end
randomize(integer) click to toggle source
# File lib/worker_killer.rb, line 23
def self.randomize(integer)
  RUBY_VERSION > '1.9' ? Random.rand(integer.abs) : rand(integer)
end