The following code: ```rb o = Object.new def o.method_missing(*) = nil # Array#zip calls o.each via method_missing out = Object.new def out.write(*) = nil def out.puts(*) = yield # receives a block it was never given ...0599jiangyc@gmail.com (Yuancheng Jiang)
The following code: ```ruby class C < File::Stat; end C.allocate ``` Resulted in this output (RUBY_DEBUG build): ``` ../object.c:2310: Assertion Failed: class_call_alloc_func:rb_obj_class(obj) == rb_class_real(klass) ruby 4...0599jiangyc@gmail.com (Yuancheng Jiang)
The following code: ```ruby IO.allocate.external_encoding ``` (also `IO.allocate.internal_encoding`, or any `IO`/`File` subclass whose `initialize` does not call `super`, e.g. `class A < IO; def initialize(*) = nil; end; A.new.e...0599jiangyc@gmail.com (Yuancheng Jiang)
The following program: ```ruby def assert_equal(*a) = nil bug15629_m1 = Module.new do def foo; end end bug15629_m2 = Module.new do def foo; end end bug15629_c = Class.new do include bug15629_m1 include bug15629_m2 e...0599jiangyc@gmail.com (Yuancheng Jiang)