Ruby Class Variable Inheritance In Cpp