Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/background_queue/worker/logger.rb

Instance Method Summary collapse

Instance Method Details

#redefine_const(name, value) ⇒ Object



94
95
96
97
# File 'lib/background_queue/worker/logger.rb', line 94

def redefine_const(name, value)
  __send__(:remove_const, name) if const_defined?(name)
  const_set(name, value)
end