On 11/24/06, Louis J Scoras <louis.j.scoras / gmail.com> wrote: > > Want to be the most evil person in the world? EVER? > > N.B.: Please don't do this =) > > require 'enumerator' > > objects = ObjectSpace.to_enum(:each_object) > classes = objects.select {|o| Class === o} > > classes.each do |klass| > klass.instance_eval { > if [?A,?E,?I,?O,?U].include?(to_s[0]) > alias_method :"is_an?", :"is_a?" > undef_method :"is_a?" > $stderr.puts "Was evil in Class: #{to_s}" > end > } > end Actually, I didn't even think that one all the way through. That won't work thank goodness ;) -- Lou.