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