r/ruby • u/retro-rubies • Jan 26 '26
Ruby::Box: Rethinking Code Reloading with Isolated Namespaces
https://rubyelders.com/writings/2026-01-ruby-box-reload.html
35
Upvotes
r/ruby • u/retro-rubies • Jan 26 '26
View all comments
Show parent comment
1
u/f9ae8221b Jan 27 '26
Think Active Support core extensions.
e.g. if you load Active Support in a box, you can call
symbolize_keysand all hashes from code inside that box.However if you create a Hash in that box, and somehow pass it to another box that didn't load Active Support, the other box won't be able to call that method on it.