artichoke / ferrocarril

🚆 Experiments to embed Ruby on Rails in Rust with mruby
https://artichoke.github.io/ferrocarril/mruby/
MIT License
62 stars 2 forks source link

Cactusref self referential adoption #197

Closed lopopolo closed 5 years ago

lopopolo commented 5 years ago

Allow a CactusRef to adopt others multiple times.

Allow a CactusRef to adopt itself, perhaps multiple times.

Add tests.

This enables building a structure like a Ruby array that can contain self. Paves the way for an unadoption API.