method

remove_const

ruby latest stable - Class: Module
remove_const(p1)
private

Removes the definition of the given constant, returning that constant’s previous value. If that constant referred to a module, this will not change that module’s name and can lead to confusion.