Module: Denko::Behaviors::Threaded::ClassMethods

Defined in:
lib/denko/behaviors/threaded.rb

Instance Method Summary collapse

Instance Method Details

#interrupt_with(*args) ⇒ Object



7
8
9
10
11
# File 'lib/denko/behaviors/threaded.rb', line 7

def interrupt_with(*args)
  interrupts = self.class_eval('@@interrupts') rescue []
  interrupts = (interrupts + args).uniq
  self.class_variable_set(:@@interrupts, interrupts)
end