I have a dynamically generated nested namespace like this:
class A
class B
class C
...
end
end
end
I can access class C manually by A::B::C, so it exists, so my generator works. However Object.const_get "A::B::C" raises a “wrong constant name” error. Can I somehow access it dynamically without cumbersome loops?
without loops? not sure.
here is my solution to this, but it does loop through your names:
here you can see it in action