Issue #5748 has been reported by Yasunori Miyamoto.

----------------------------------------
Bug #5748: class_eval ????????????????????????????????????????????
http://redmine.ruby-lang.org/issues/5748

Author: Yasunori Miyamoto
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 1.9.3
ruby -v: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]


以????? class_eval ??説????????????
http://doc.ruby-lang.org/ja/1.9.3/method/Module/i/class_eval.html
> ???????????????????????身?????????義?????????????????????????????
????????????????以?????????????????????? NameError ?????????????????

class MyClass
    CONST = "MyClass"
end

MyClass.class_eval do
    p CONST        # => NameError
end


??????:
test.rb:6:in `block in <main>': uninitialized constant CONST (NameError)
        from test.rb:5:in `class_eval'
        from test.rb:5:in `<main>'

??????????????:
"MyClass" ??表示???????????


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