method
const_missing
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::Dependencies::ModuleConstMissing
const_missing(const_name)public
No documentation available.
# File activesupport/lib/active_support/dependencies.rb, line 178
def const_missing(const_name)
# The interpreter does not pass nesting information, and in the
# case of anonymous modules we cannot even make the trade-off of
# assuming their name reflects the nesting. Resort to Object as
# the only meaningful guess we can make.
from_mod = anonymous? ? ::Object : self
Dependencies.load_missing_constant(from_mod, const_name)
end