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

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

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