From: Louis J Scoras Date: 2006-11-25T05:18:52+09:00 Subject: Re: how do I contribute to Ruby? On 11/24/06, Giles Bowkett wrote: > > Just as an aside, to implement this, I would much rather monkeypatch > Object than Array. Otherwise it just happens again the next time I > have a class which begins with a vowel. > 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 -- Lou.