Project

General

Profile

Bug #4307 ยป issue.rb

adrianomitre (Adriano Mitre), 01/24/2011 04:14 AM

 
module Foo; def foo; 42; end; end
Array.class_eval { include Foo }
[1].foo
Array.class_eval { Foo.instance_methods.each {|m| self.class_eval { undef_method m } } }
[1].foo
Array.class_eval { include Foo }
[1].foo

    (1-1/1)