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
(http://stackoverflow.com/questions/3434884/accessing-ruby-class-variables-with-class-eval-and-instance-eval
) 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