For Ruby extension, how to save a reference in C or Rust side?
I think I need to keep a reference on Ruby’s side to avoid the object being reclaimed by GC, but how should I do it properly? Has Ruby provided methods for such a thing?
I think I need to keep a reference on Ruby’s side to avoid the object being reclaimed by GC, but how should I do it properly? Has Ruby provided methods for such a thing?