Class_eval constant look up

given:

class A
class B
class C
end
end
end

I would expect

A.class_eval { B } to find A::B - but instead it raises “NameError
uninitialized constant Class::B”

am I misreading what this
(Accessing Ruby Class Variables with class_eval and instance_eval - Stack Overflow
) says?

I am using 1.9.2.

stephen

apparently it changed it 1.9.2

http://www.ruby-forum.com/topic/518282

any body have any ideas on how to fake the old behavior?

stephen