Method: Module#const_reset!

Defined in:
lib/y_support/core_ext/module/misc.rb

#const_reset!(const, value) ⇒ Object

Redefines a constant without warning.



53
54
55
56
# File 'lib/y_support/core_ext/module/misc.rb', line 53

def const_reset!( const, value )
  send :remove_const, const if const_defined? const
  const_set( const, value )
end