Type:
Class

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 `require`d, 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.

watching?

watching?() Instance Public methods

2015-06-20 00:00:00
new_constants

new_constants() Instance Public methods Returns a list of new constants found

2015-06-20 00:00:00
new

new() Class Public methods @watching is a stack of lists of constants being

2015-06-20 00:00:00
each

each(&block) Instance Public methods

2015-06-20 00:00:00
watch_namespaces

watch_namespaces(namespaces) Instance Public methods Add a set of modules to

2015-06-20 00:00:00