module Kernel::WithModuleConstResolutionExtension
Public Instance Methods
const_missing(const_name)
click to toggle source
Calls superclass method
# File lib/utilrb/kernel/with_module.rb, line 4 def const_missing(const_name) if with_module_setup = Thread.current[:__with_module__] if consts = with_module_setup.last consts.each do |mod| if mod.const_defined?(const_name) return mod.const_get(const_name) end end end end super end