Issue #21318 has been updated by tagomoris (Satoshi Tagomori). Status changed from Open to Closed Now `Module.nesting` doesn't return its box information in a box. ``` MBA:build s-tagomori$ RUBY_BOX=1 ./exe/ruby -v ruby 4.0.0dev (2025-12-09T12:29:36Z box-news-documents.. c998717de8) +PRISM [arm64-darwin24] MBA:build s-tagomori$ RUBY_BOX=1 ./exe/ruby -ve 'p Module.nesting; ns = Ruby::Box.new; File.write "ns.rb", "p Module.nesting"; ns.require "./ns"' ruby 4.0.0dev (2025-12-09T12:29:36Z box-news-documents.. c998717de8) +PRISM [arm64-darwin24] ./exe/ruby: warning: Ruby::Box is experimental, and the behavior may change in the future! See doc/language/box.md for known issues, etc. [] [] MBA:build s-tagomori$ ``` ---------------------------------------- Bug #21318: Namespaces leak with Module.nesting https://bugs.ruby-lang.org/issues/21318#change-115543 * Author: fxn (Xavier Noria) * Status: Closed * Assignee: tagomoris (Satoshi Tagomori) * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Namespaces are not transparent for this program: ```ruby Module.nesting ``` The nesting is empty or not depending on whether it is being executed under a namespace. -- https://bugs.ruby-lang.org/