I am writing some code in C Ruby and have defined a class A
under a class B
. Both classes are associated with C structures that use VALUE
objects that need to be marked.
My question is a rather simple one: does Ruby’s GC call only the marking function for class B
or does it also call class A
‘s one? If not, what is a standard way to mark the parent’s VALUE
objects?