Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: Array

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

The WatchStack keeps a stack of the modules being watched as files are loaded. If a file in the process of being loaded (parent.rb) triggers the load of another file (child.rb) the stack will ensure that child.rb handles the new constants.

If child.rb is being autoloaded, its constants will be added to autoloaded_constants. If it was being required, they will be discarded.

This is handled by walking back up the watch stack and adding the constants found by child.rb to the list of original constants in parent.rb.

Show files where this class is defined (1 file)
Register or log in to add new notes.