class WatchStack
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v6.1.7.10The 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
Inherits from
Includes
Methods (defined here)
- # each
- # new_constants
- # watching?
- # watch_namespaces
- self. new
Private methods
(1)
Implementation detail — not part of the public API.
Methods (inherited)
From Enumerable (6)
From Object (18)
- # acts_like?
- # blank?
- # create_fixtures
- # duplicable?
- # html_safe?
- # in?
- # instance_variable_names
- # options
- # presence
- # present?
- # test_homepage
- # to_json
- # to_param
- # to_query
- # try
- # unescape
- # with_options
- self. table_name_prefix