Dependencies
[] & get
clear!
empty?
key?
safe_get
storeeach
new_constants
watch_namespaces
watching?最后更新于
[] & get
clear!
empty?
key?
safe_get
storeeach
new_constants
watch_namespaces
watching?最后更新于
# in active_support/dependencies.rb
def const_missing(const_name)
from_mod = anonymous? ? guess_for_anonymous(const_name) : self
Dependencies.load_missing_constant(from_mod, const_name)
end#lib/active_support/dependencies.rb:477
expanded = File.expand_path(file_path)
expanded.sub!(/\.rb\z/, '')
if loading.include?(expanded)
raise "Circular dependency detected while autoloading constant #{qualified_name}"
end