class Module private alias_method :undef, :undef_method end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCModule < Test::Unit::TestCase def the_undefined_method ; 'not here' ; end undef :the_undefined_method def test_undef assert( ! respond_to?( :the_undefined_method ) ) end end =end