From: Harold Hausman Date: 2006-12-07T11:58:16+09:00 Subject: Re: How to shoot yourself in the foot in Ruby On 12/7/06, Eric Hodel wrote: > On Dec 6, 2006, at 18:11 , Harold Hausman wrote: > > > > How about this? > > Object.constants.each do |x| eval( "#{x} = nil" ) end > > > > Seems to shoot irb in the foot, for various values of foot, like head. > > eval? please! > > Object.constants.each do |c| Object.send :remove_const, c end > ahhhh, now that's the Ruby Way. I'm such a noob, -Harold