From: Ryan Leavengood Date: 2005-11-15T06:44:22+09:00 Subject: Re: removing a constant definition from an environment On 11/14/05, Robert Evans wrote: > > I expected the unit test to clean the environment, in lieu of that, > how can I undefined const? ---------------------------------------------------- Module#remove_const remove_const(sym) => obj ------------------------------------------------------------------------ Removes the definition of the given constant, returning that constant's value. Predefined classes and singleton objects (such as _true_) cannot be removed. You pass it a symbol: remove_const(:VARIABLE) Ryan