lib/sidekiq_simple_delay.rb
def enable_delay_class!(klass)
      raise ArgumentError, 'klass must be a Class' unless klass.class.is_a?(Class)

      return if klass.singleton_class.included_modules.include?(SidekiqSimpleDelay::DelayMethods)

      klass.__send__(:extend, SidekiqSimpleDelay::DelayMethods)
    end
# Adds simple_delay class methods to a class
#
# @param klass [Class] Class to add simple_delay class methods to
Adds simple_delay class methods to a class
Adds simple_delay class methods to a class
def enable_delay_class!(klass)
      raise ArgumentError, 'klass must be a Class' unless klass.class.is_a?(Class)
      return if klass.singleton_class.included_modules.include?(SidekiqSimpleDelay::DelayMethods)
      klass.__send__(:extend, SidekiqSimpleDelay::DelayMethods)
    end
def enable_delay_class! ( klass ) raise ArgumentError , 'klass must be a Class' unless klass . class . is_a? ( Class ) return if klass . singleton_class . included_modules . include? ( SidekiqSimpleDelay :: DelayMethods ) klass . __send__ ( :extend , SidekiqSimpleDelay :: DelayMethods ) end
Adds simple_delay class methods to a class
Adds simple_delay class methods to a class
klass
Class to add simple_delay class methods to
Class to add simple_delay class methods to