Issue #5731 has been reported by Masahiro Tomita.

----------------------------------------
Bug #5731: enum_for ???篏帥????? method_missing ????????????羝<?????????
http://redmine.ruby-lang.org/issues/5731

Author: Masahiro Tomita
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p0 (2011-10-30) [i686-linux]


罨<??鴻?????????? 1.9.3 ??у??茵?????????? enum_for ???鴻?? block ??? nil ???????障?????
1.8.7 ??с?筝??鴻??? block ???羝<???????障????????

---------------------------------------------
class A
  def method_missing(name, *args, &block)
    p block
  end
end

a = A.new
a.hoge{|l| p l}                    # ???????????羝<????????
a.enum_for(:hoge).each{|l| p l}    # ???????????羝<?????????
---------------------------------------------

% /usr/local/ruby187/bin/ruby -v a.rb
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
#<Proc:0xb76dbb60 / a.rb:9>
#<Proc:0xb76db8e0 / a.rb:10>

% ruby -v a.rb
ruby 1.9.3p0 (2011-10-30) [i686-linux]
#<Proc:0x8829080 / a.rb:9>
nil

# 篏帥????鴻??????????c??????????????c?????????????障?????



-- 
http://redmine.ruby-lang.org