Sha256: 80d9adee816b9109cb1524fbe2fd15a0f58540718130010f5235de843c5eeff2
Contents?: true
Size: 459 Bytes
Versions: 16
Compression:
Stored size: 459 Bytes
Contents
class Module private # Alias for undef_method. alias_method :nodef, :undef_method end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCModule < Test::Unit::TestCase def the_undefined_method ; 'not here' ; end nodef :the_undefined_method def test_nodef assert( ! respond_to?( :the_undefined_method ) ) end end =end
Version data entries
16 entries across 16 versions & 1 rubygems