class method
self.new
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v6.1.7.10Signature
self.new()
@watching is a stack of lists of constants being watched. For instance, if parent.rb is autoloaded, the stack will look like [[Object]]. If parent.rb then requires namespace/child.rb, the stack will look like [[Object], [Namespace]].
Source
# File activesupport/lib/active_support/dependencies.rb, line 81
def initialize
@watching = []
@stack = Hash.new { |h,k| h[k] = [] }
end
Defined in activesupport/lib/active_support/dependencies.rb line 81
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies::WatchStack